projects
/
mobi
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
962a43b
)
Uers may not use main category (Producto) for ads
author
Gusa
<gu.martinm@gmail.com>
Sat, 15 Dec 2012 01:18:49 +0000
(
02:18
+0100)
committer
Gusa
<gu.martinm@gmail.com>
Sat, 15 Dec 2012 01:18:49 +0000
(
02:18
+0100)
This is the right change!!!!
lib/model/doctrine/CompanyCategoryTable.class.php
patch
|
blob
|
history
diff --git
a/lib/model/doctrine/CompanyCategoryTable.class.php
b/lib/model/doctrine/CompanyCategoryTable.class.php
index
692b543
..
03b68be
100644
(file)
--- a/
lib/model/doctrine/CompanyCategoryTable.class.php
+++ b/
lib/model/doctrine/CompanyCategoryTable.class.php
@@
-28,14
+28,14
@@
class CompanyCategoryTable extends Doctrine_Table
if ($currentCategory != null)
{
return $this->createQuery('cc')->where('cc.level != ?', '0')
- ->
or
Where('cc.company_id = ?', $companyId)
+ ->
and
Where('cc.company_id = ?', $companyId)
->andWhere('cc.lft > ? or cc.lft < ?', array($currentRgt, $currentLft))
->orderBy('cc.lft');
}
else
{
return $this->createQuery('cc')->where('cc.company_id = ?', $companyId)
- ->
or
Where('cc.level != ?', '0')
+ ->
and
Where('cc.level != ?', '0')
->orderBy('cc.lft');
}
}