Skip to content

Commit 87d089e

Browse files
author
Yaroslav Onischenko
committed
MAGETWO-44110: Product swatch attributes available for attribute type price
1 parent 141933b commit 87d089e

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,10 @@ require([
265265
setRowVisibility('is_unique', false);
266266
setRowVisibility('frontend_class', false);
267267
break;
268-
<?php $hiddenFields = $this->helper('Magento\Catalog\Helper\Data')->getAttributeHiddenFields() ?>
268+
<?php $hiddenFields = $block->helper('Magento\Catalog\Helper\Data')->getAttributeHiddenFields() ?>
269269
<?php foreach ($hiddenFields as $type => $fields): ?>
270270
<?php if (in_array($type, array('swatch_visual', 'swatch_text'))) continue ?>
271-
case '<?php echo $this->escapeHtml($type); ?>':
271+
case '<?php echo $block->escapeHtml($type); ?>':
272272
<?php foreach ($fields as $one): ?>
273273
<?php if ($one == '_front_fieldset'): ?>
274274
getFrontTab().hide();
@@ -280,7 +280,7 @@ require([
280280
<?php elseif ($one == '_scope'): ?>
281281
scopeVisibility = false;
282282
<?php else: ?>
283-
setRowVisibility('<?php echo $this->escapeHtml($one); ?>', false);
283+
setRowVisibility('<?php echo $block->escapeHtml($one); ?>', false);
284284
<?php endif; ?>
285285
<?php endforeach; ?>
286286
break;

0 commit comments

Comments
 (0)