Skip to content

Commit

Permalink
[ResourceBundle] core fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dpfaffenbauer committed Jun 1, 2021
1 parent 6c542e2 commit 97f743a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,14 @@ private function checkAssociations($entity, $managedCopy, array &$visited): void
//Reset new Data, for some reason the line above resets newData
$newData = $class->reflFields[$assoc['fieldName']]->getValue($entity);

if (!$newCollection instanceof PersistentCollection) {
$newCollection = new PersistentCollection(
$this->em,
$class,
$newCollection
);
}

$this->mergeCollection($origData, $newData, $assoc, static function ($foundEntry) use ($newCollection) {
$newCollection->removeElement($foundEntry);
}, $visited);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ pimcore.object.classes.data.coreShopRelations = Class.create(coreshop.object.cla
{
xtype: 'combo',
fieldLabel: t("coreshop_allowed_stack"),
name: "classes",
name: "stacks",
id: 'coreshop_relation_stack_' + this.uniqeFieldId,
value: this.datax.stack,
store: stacks,
Expand Down

0 comments on commit 97f743a

Please sign in to comment.