From 3922667c31eacfd72a7525ba37c3981adfa93aed Mon Sep 17 00:00:00 2001 From: abadello Date: Tue, 13 Jul 2021 14:18:09 +0300 Subject: [PATCH] Update eFilter.class.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Добавлена возможность фильтрации по родительским документам --- assets/snippets/eFilter/eFilter.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/snippets/eFilter/eFilter.class.php b/assets/snippets/eFilter/eFilter.class.php index b498898..114acf1 100644 --- a/assets/snippets/eFilter/eFilter.class.php +++ b/assets/snippets/eFilter/eFilter.class.php @@ -1112,6 +1112,7 @@ public function getCategoryProductsChildren($id, $children = array(), $depth = 6 'debug' => '0', 'addWhereList' => 'template IN (' . $this->product_templates_id . ')' ); + $p['showParent'] = $this->params['showParent'] ? 1 : 0; $filter_ids = $this->modx->getPlaceholder("eFilter_filter_ids"); if (!empty($filter_ids)) { $p['addWhereList'] .= ' AND c.id IN (' . $filter_ids . ') ';