File tree 1 file changed +2
-2
lines changed
app/code/Magento/ConfigurableProduct/Model/Product/Type 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -376,7 +376,7 @@ public function getConfigurableAttributes($product)
376
376
['group ' => 'CONFIGURABLE ' , 'method ' => __METHOD__ ]
377
377
);
378
378
if (!$ product ->hasData ($ this ->_configurableAttributes )) {
379
- $ metadata = $ this ->metadataPool ->getMetadata (ProductInterface::class);
379
+ $ metadata = $ this ->getMetadataPool () ->getMetadata (ProductInterface::class);
380
380
$ cacheId = __CLASS__ . $ product ->getData ($ metadata ->getLinkField ()) . '_ ' . $ product ->getStoreId ();
381
381
$ configurableAttributes = $ this ->cache ->load ($ cacheId );
382
382
$ configurableAttributes = $ this ->hasCacheData ($ configurableAttributes );
@@ -615,7 +615,7 @@ public function beforeSave($product)
615
615
public function save ($ product )
616
616
{
617
617
parent ::save ($ product );
618
- $ metadata = $ this ->metadataPool ->getMetadata (ProductInterface::class);
618
+ $ metadata = $ this ->getMetadataPool () ->getMetadata (ProductInterface::class);
619
619
$ cacheId = __CLASS__ . $ product ->getData ($ metadata ->getLinkField ()) . '_ ' . $ product ->getStoreId ();
620
620
$ this ->cache ->remove ($ cacheId );
621
621
You can’t perform that action at this time.
0 commit comments