Skip to content

Commit

Permalink
Выбор только опубликованных категорий, с проверкой уровня доступа
Browse files Browse the repository at this point in the history
  • Loading branch information
kernusr committed May 18, 2020
1 parent 6808a73 commit 347cc4a
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 347cc4a

Please sign in to comment.