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 af6803a + 9e11bb8 commit 10fe7daCopy full SHA for 10fe7da
app/code/Magento/Eav/Model/Entity/Attribute/AbstractAttribute.php
@@ -608,9 +608,11 @@ public function getSource()
608
{
609
if (empty($this->_source)) {
610
if (!$this->getSourceModel()) {
611
- $this->setSourceModel($this->_getDefaultSourceModel());
+ $this->_source = $this->_getDefaultSourceModel();
612
+ } else {
613
+ $this->_source = $this->getSourceModel();
614
}
- $source = $this->_universalFactory->create($this->getSourceModel());
615
+ $source = $this->_universalFactory->create($this->_source);
616
if (!$source) {
617
throw new LocalizedException(
618
__(
0 commit comments