From ab1b5ecf2621f3e4d55a021ef870170220a6fd8d Mon Sep 17 00:00:00 2001 From: Alexkurd <7689609+Alexkurd@users.noreply.github.com> Date: Fri, 31 May 2019 18:31:09 +0300 Subject: [PATCH] Update shopViewHelper.class.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit {$wa->shop->features($products)} расширяет $products, но к новому $products по хуку доступа нет. --- lib/classes/shopViewHelper.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/classes/shopViewHelper.class.php b/lib/classes/shopViewHelper.class.php index c206309df..7c4c53974 100644 --- a/lib/classes/shopViewHelper.class.php +++ b/lib/classes/shopViewHelper.class.php @@ -369,6 +369,7 @@ public function features(&$products, $public_only = true) $is_from_template = waConfig::get('is_template'); waConfig::set('is_template', null); wa('shop')->event('view_features', $result); + wa('shop')->event('view_features.products', $products); waConfig::set('is_template', $is_from_template); return $result;