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 1416c4c + 3e066db commit 08042f4Copy full SHA for 08042f4
app/code/Magento/Eav/Model/Entity/Attribute/AbstractAttribute.php
@@ -594,9 +594,11 @@ public function getSource()
594
{
595
if (empty($this->_source)) {
596
if (!$this->getSourceModel()) {
597
- $this->setSourceModel($this->_getDefaultSourceModel());
+ $this->_source = $this->_getDefaultSourceModel();
598
+ } else {
599
+ $this->_source = $this->getSourceModel();
600
}
- $source = $this->_universalFactory->create($this->getSourceModel());
601
+ $source = $this->_universalFactory->create($this->_source);
602
if (!$source) {
603
throw new LocalizedException(
604
__(
0 commit comments