Skip to content

Commit

Permalink
Fix save customer attribute image
Browse files Browse the repository at this point in the history
  • Loading branch information
Nazar65 committed Dec 27, 2018
1 parent 6d5ee63 commit 188a3e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Eav/Model/Attribute/Data/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ protected function _validateByRules($value)
return $this->_fileValidator->getMessages();
}

if (!empty($value['tmp_name']) && !is_uploaded_file($value['tmp_name'])) {
if (empty($value['tmp_name']) && !is_uploaded_file($value['tmp_name'])) {
return [__('"%1" is not a valid file.', $label)];
}

Expand Down

0 comments on commit 188a3e6

Please sign in to comment.