change visibility parameter in category loop
This commit is contained in:
@@ -128,8 +128,9 @@ class Category extends BaseI18nLoop
|
|||||||
$search->filterById($exclude, Criteria::NOT_IN);
|
$search->filterById($exclude, Criteria::NOT_IN);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->getVisible() != BooleanOrBothType::ANY)
|
$visible = $this->getVisible();
|
||||||
$search->filterByVisible($this->getVisible() ? 1 : 0);
|
|
||||||
|
if ($visible !== BooleanOrBothType::ANY) $search->filterByVisible($visible ? 1 : 0);
|
||||||
|
|
||||||
$product = $this->getProduct();
|
$product = $this->getProduct();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user