Skip to content

Commit

Permalink
Merge pull request #2535 from napley/fix/keep-reverse-relation-on-save
Browse files Browse the repository at this point in the history
not remove reverse relation when save
  • Loading branch information
I-Valchev committed Apr 19, 2021
2 parents fe7bdf9 + 9fe5755 commit 4c0d0a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/Backend/ContentEditController.php
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ private function updateTaxonomy(Content $content, string $key, $taxonomy): void
private function updateRelation(Content $content, $newRelations): void
{
$newRelations = (new Collection(Json::findArray($newRelations)))->filter();
$currentRelations = $this->relationRepository->findRelations($content, null, true, null, false);
$currentRelations = $this->relationRepository->findRelations($content, null, false, null, false);

// Remove old ones
foreach ($currentRelations as $currentRelation) {
Expand Down

0 comments on commit 4c0d0a6

Please sign in to comment.