-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Labels
Component: CatalogIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report
Description
Preconditions
- Magento 2.1.6
- PHP 7.0.14-2a
Steps to reproduce
Try to create product attribute text swatch with value "0" (zero)
Expected result
New value for attribute
Actual result
Admin is a required field in the each row
To see recorded behaviour: http://recordit.co/bUwOLQQ3n2
After saving:
Quick Fix
module-swatches/Model/Plugin/EavAttribute.php
Method isOptionsValid()
Instead of this:
if (empty($option[0])) { return false; }
Type this:
if($option[0] != '0'){ if (empty($option[0])) { return false; } }
korostii
Metadata
Metadata
Assignees
Labels
Component: CatalogIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report