Skip to content

Commit

Permalink
fix(composite): ignore link to non existing ticket
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Jan 13, 2023
1 parent 2dc9f8e commit 8502d4b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions inc/composite.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,13 @@ public function buildCompositeRelations() {
if ($answer->isNewItem()) {
break;
}
if (Ticket::isNewID($answer->fields['answer'])) {
break;
}
$ticket = new Ticket();
if (!$ticket->getFromDB($answer->fields['answer'])) {
break;
}
$this->ticket_ticket->add([
'link' => $row['link'],
'tickets_id_1' => $generatedObject->getID(),
Expand Down

0 comments on commit 8502d4b

Please sign in to comment.