Skip to content

Commit

Permalink
Fix adding users to quotes and invoices
Browse files Browse the repository at this point in the history
  • Loading branch information
pierredup committed May 10, 2023
1 parent 7ff2742 commit 4b495e3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/CoreBundle/Form/Transformer/UserToContactTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,12 @@ public function reverseTransform($value)
$contact->setContact($item);
if ($this->entity instanceof Invoice) {
$contact->setInvoice($this->entity);
break;
}
if ($this->entity instanceof RecurringInvoice) {
$contact->setRecurringInvoice($this->entity);
break;
}
if ($this->entity instanceof Quote) {
$contact->setQuote($this->entity);
break;
}

$users[] = $contact;
Expand Down

0 comments on commit 4b495e3

Please sign in to comment.