Skip to content

Commit a817f09

Browse files
committed
BUGFIX: replace instead of merge in first level cache update
1 parent 51d0017 commit a817f09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/Sandstorm/GedmoTranslatableConnector/TranslatableTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public function setTranslations(array $translations) {
213213
}
214214

215215
// Keep the cache up to date. This also supports getTranslations() calls without persisting the object.
216-
$this->firstLevelTranslationsCache = array_merge_recursive($this->firstLevelTranslationsCache, $translations);
216+
$this->firstLevelTranslationsCache = array_replace_recursive($this->firstLevelTranslationsCache, $translations);
217217
}
218218

219219
/**

0 commit comments

Comments
 (0)