File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -74,10 +74,12 @@ public function afterSave()
74
74
if ($ this ->isValueChanged ()) {
75
75
try {
76
76
$ oldValue = $ this ->serializer ->unserialize ($ this ->getOldValue ());
77
+ $ updatedValue = $ this ->serializer ->unserialize ($ this ->getValue ());
78
+ $ sortingAttributes = array_merge ($ oldValue , $ updatedValue );
77
79
$ storeIds = array_keys ($ this ->storeManager ->getStores ());
78
80
foreach ($ storeIds as $ storeId ) {
79
81
$ indexName = $ this ->helper ->getIndexName ($ this ->productHelper ->getIndexNameSuffix (), $ storeId );
80
- $ this ->productHelper ->handlingReplica ($ indexName , $ storeId , $ oldValue );
82
+ $ this ->productHelper ->handlingReplica ($ indexName , $ storeId , $ sortingAttributes );
81
83
}
82
84
} catch (AlgoliaException $ e ) {
83
85
if ($ e ->getCode () !== 404 ) {
You can’t perform that action at this time.
0 commit comments