Skip to content

Commit e1f3cc2

Browse files
Merge remote-tracking branch 'remotes/github/MAGETWO-97311' into EPAM-PR-41
2 parents 60aa1a6 + c56b9ce commit e1f3cc2

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

app/code/Magento/Catalog/Model/ResourceModel/Eav/Attribute.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,8 @@ public function afterSave()
236236
) {
237237
$this->_indexerEavProcessor->markIndexerAsInvalid();
238238
}
239-
if ($this->_source !== null) {
240-
$this->_source->clearOptions();
241-
}
239+
240+
$this->_source = null;
242241

243242
return parent::afterSave();
244243
}

app/code/Magento/Eav/Model/Entity/Attribute/Source/AbstractSource.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,6 @@ public function getOptionId($value)
9595
return null;
9696
}
9797

98-
/**
99-
* Clear cached options.
100-
*
101-
* @return void
102-
*/
103-
public function clearOptions() : void
104-
{
105-
$this->_options = null;
106-
}
107-
10898
/**
10999
* Add Value Sort To Collection Select
110100
*

0 commit comments

Comments
 (0)