Skip to content

Commit

Permalink
not remove reverse relation when save
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien CHOMETTON committed Apr 1, 2021
1 parent 1f77cd9 commit 35c7a6e
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 35c7a6e

Please sign in to comment.