projects
/
mobi
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62110ac
)
Users may not use main category (Producto) for ads
author
Gusa
<gu.martinm@gmail.com>
Sat, 15 Dec 2012 00:58:54 +0000
(
01:58
+0100)
committer
Gusa
<gu.martinm@gmail.com>
Sat, 15 Dec 2012 00:58:54 +0000
(
01:58
+0100)
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
0d4bafc
..
692b543
100644
(file)
--- a/
lib/model/doctrine/CompanyCategoryTable.class.php
+++ b/
lib/model/doctrine/CompanyCategoryTable.class.php
@@
-27,7
+27,7
@@
class CompanyCategoryTable extends Doctrine_Table
{
if ($currentCategory != null)
{
- return $this->createQuery('cc')->where('cc.level = ?', '0')
+ return $this->createQuery('cc')->where('cc.level
!
= ?', '0')
->orWhere('cc.company_id = ?', $companyId)
->andWhere('cc.lft > ? or cc.lft < ?', array($currentRgt, $currentLft))
->orderBy('cc.lft');
@@
-35,7
+35,7
@@
class CompanyCategoryTable extends Doctrine_Table
else
{
return $this->createQuery('cc')->where('cc.company_id = ?', $companyId)
- ->orWhere('cc.level = ?', '0')
+ ->orWhere('cc.level
!
= ?', '0')
->orderBy('cc.lft');
}
}