Skip to content

Commit 9ac92f6

Browse files
committed
AC-4958: Multiselect/select attribute options can be saved when Swatches modules disabled
1 parent a04b0ef commit 9ac92f6

File tree

1 file changed

+3
-0
lines changed
  • app/code/Magento/Catalog/view/adminhtml/templates/catalog/product/attribute

1 file changed

+3
-0
lines changed

‎app/code/Magento/Catalog/view/adminhtml/templates/catalog/product/attribute/js.phtml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ use Magento\Catalog\Helper\Data;
1313
<?php
1414
/** @var \Magento\Framework\Json\Helper\Data $jsonHelper */
1515
$jsonHelper = $block->getData('jsonHelper');
16+
if (!method_exists($jsonHelper, 'getAttributeHiddenFields')) {
17+
$jsonHelper = $this->helper(Data::class);
18+
}
1619
$scriptString = <<<script
1720
require([
1821
"jquery",

0 commit comments

Comments
 (0)