We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 156c2d8 commit b91b2a9Copy full SHA for b91b2a9
app/code/Magento/Catalog/Controller/Adminhtml/Product/Attribute/Validate.php
@@ -149,14 +149,12 @@ private function setMessageToResponse($response, $messages)
149
/**
150
* @param DataObject $response
151
* @param array|null $options
152
- * @return $this
153
*/
154
private function checkUniqueOption(DataObject $response, array $options = null)
155
{
156
- if (is_array($options) and !$this->isUniqueAdminValues($options['value'], $options['delete'])) {
+ if (is_array($options) && !$this->isUniqueAdminValues($options['value'], $options['delete'])) {
157
$this->setMessageToResponse($response, [__('The value of Admin must be unique.')]);
158
$response->setError(true);
159
}
160
- return $this;
161
162
0 commit comments