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.
2 parents 4b2bbc7 + 36216c4 commit b4520f1Copy full SHA for b4520f1
lib/internal/Magento/Framework/Model/ResourceModel/Db/AbstractDb.php
@@ -604,7 +604,7 @@ protected function _checkUnique(\Magento\Framework\Model\AbstractModel $object)
604
$fields = $this->getUniqueFields();
605
if (!empty($fields)) {
606
if (!is_array($fields)) {
607
- $this->_uniqueFields = [['field' => $fields, 'title' => $fields]];
+ $fields = $this->_uniqueFields = [['field' => $fields, 'title' => $fields]];
608
}
609
610
$data = new \Magento\Framework\DataObject($this->_prepareDataForSave($object));
0 commit comments