Skip to content

Commit d345c8b

Browse files
committed
MC-35575: Issue in saving a custom product attribute
1 parent 9783626 commit d345c8b

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Catalog/Controller/Adminhtml/Product/Attribute

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Controller/Adminhtml/Product/Attribute/Validate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ private function checkUniqueOption(DataObject $response, array $options = null)
270270
private function checkEmptyOption(DataObject $response, array $optionsForCheck = null)
271271
{
272272
foreach ($optionsForCheck as $optionValues) {
273-
if (isset($optionValues[0]) && trim($optionValues[0]) == '') {
273+
if (isset($optionValues[0]) && trim((string)$optionValues[0]) == '') {
274274
$this->setMessageToResponse($response, [__("The value of Admin scope can't be empty.")]);
275275
$response->setError(true);
276276
}

0 commit comments

Comments
 (0)