Skip to content

Commit c56d1df

Browse files
author
okarpenko
committed
MAGETWO-45073: PHP notice during to create Text Swatch product attribute
1 parent d13b1fe commit c56d1df

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/code/Magento/Swatches/Model/Plugin/EavAttribute.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ public function beforeSave(Attribute $attribute)
8080
$this->convertSwatchToDropdown($attribute);
8181
}
8282

83+
/**
84+
* @param Attribute $attribute
85+
* @return bool
86+
* @throws InputException
87+
*/
8388
protected function validateOptions(Attribute $attribute)
8489
{
8590
$attributeSavedOptions = $attribute->getSource()->getAllOptions(false);

0 commit comments

Comments
 (0)