Skip to content

Commit 603b61d

Browse files
committed
Fix typo in variable name
1 parent bf80051 commit 603b61d

File tree

1 file changed

+3
-3
lines changed
  • app/code/Magento/Catalog/Block/Adminhtml/Product/Attribute/Edit/Tab

1 file changed

+3
-3
lines changed

app/code/Magento/Catalog/Block/Adminhtml/Product/Attribute/Edit/Tab/Main.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ protected function _prepareForm()
3535
$form = $this->getForm();
3636
/* @var $fieldset \Magento\Framework\Data\Form\Element\Fieldset */
3737
$fieldset = $form->getElement('base_fieldset');
38-
$fiedsToRemove = ['attribute_code', 'is_unique', 'frontend_class'];
38+
$fieldsToRemove = ['attribute_code', 'is_unique', 'frontend_class'];
3939

4040
foreach ($fieldset->getElements() as $element) {
4141
/** @var \Magento\Framework\Data\Form\AbstractForm $element */
4242
if (substr($element->getId(), 0, strlen('default_value')) == 'default_value') {
43-
$fiedsToRemove[] = $element->getId();
43+
$fieldsToRemove[] = $element->getId();
4444
}
4545
}
46-
foreach ($fiedsToRemove as $id) {
46+
foreach ($fieldsToRemove as $id) {
4747
$fieldset->removeField($id);
4848
}
4949

0 commit comments

Comments
 (0)