We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c8912c commit a1a494dCopy full SHA for a1a494d
app/code/Magento/Catalog/Model/Category/Attribute/Backend/Sortby.php
@@ -104,8 +104,7 @@ public function beforeSave($object)
104
}
105
if ($attributeCode == 'default_sort_by') {
106
$data = $object->getData($attributeCode);
107
- $attributeValue = is_array($data) ? reset($data) :
108
- (!empty($data)) ? $data : null;
+ $attributeValue = (is_array($data) ? reset($data) : (!empty($data))) ? $data : null;
109
$object->setData($attributeCode, $attributeValue);
110
111
if (!$object->hasData($attributeCode)) {
0 commit comments