Skip to content

Commit

Permalink
fix(composite): avoid error if ticket does not exists
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Jun 28, 2021
1 parent 323f5ae commit 67a4092
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions inc/composite.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ public function buildCompositeRelations() {

case PluginFormcreatorTargetTicket::class:
$ticket = $this->targets['PluginFormcreatorTargetTicket'][$row['items_id']];
if ($ticket === null) {
continue;
}
$this->ticket_ticket->add([
'link' => $row['link'],
'tickets_id_1' => $generatedObject->getID(),
Expand Down

0 comments on commit 67a4092

Please sign in to comment.