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 15100ac commit 36216c4Copy full SHA for 36216c4
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