Skip to content

Commit

Permalink
Merge pull request #2 from webmasterskaya/fix-list-jshopping-categories
Browse files Browse the repository at this point in the history
Выбор только опубликованных категорий, с проверкой уровня доступа
  • Loading branch information
zikkuratvk authored May 18, 2020
2 parents 6808a73 + 347cc4a commit 1c78acc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/connectors/joomshopping.php
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ public function loadCustomParams($params, $field)
$values = json_decode($field->value, true);

$include_categories = (empty($values["include_categories"])) ? array() : $values["include_categories"];
$categories = buildTreeCategory(0,1,0);
$categories = buildTreeCategory(1,1,1);
$all = new stdClass();
$all->category_id = '-1';
$all->name = JText::_('JALL');
Expand Down Expand Up @@ -586,7 +586,7 @@ private function getProducts(array $products)

public function getFilterCategory()
{
$categories = buildTreeCategory(0,1,0);
$categories = buildTreeCategory(1,1,1);
$all = new stdClass();
$all->category_id = '';
$all->name = JText::_('JSELECT');
Expand Down

0 comments on commit 1c78acc

Please sign in to comment.