Skip to content

Commit

Permalink
Merge pull request #13244 from kuzmany/eplace-entity-with-reference
Browse files Browse the repository at this point in the history
Fix replace entity with reference for detached lists for add to segment action
  • Loading branch information
escopecz committed Jan 19, 2024
2 parents 49036dc + 8499c5b commit bee6b30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/bundles/LeadBundle/Model/ListModel.php
Expand Up @@ -614,7 +614,7 @@ public function addLead($lead, $lists, $manuallyAdded = false, $batchProcess = f
}
} else {
$listLead = new ListLead();
$listLead->setList($this->leadChangeLists[$listId]);
$listLead->setList($this->em->getReference(LeadList::class, $listId));
$listLead->setLead($lead);
$listLead->setManuallyAdded($manuallyAdded);
$listLead->setDateAdded($dateManipulated);
Expand Down

0 comments on commit bee6b30

Please sign in to comment.