Skip to content

Commit 67a4092

Browse files
committed
fix(composite): avoid error if ticket does not exists
Signed-off-by: Thierry Bugier <[email protected]>
1 parent 323f5ae commit 67a4092

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

inc/composite.class.php

+3
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ public function buildCompositeRelations() {
9393

9494
case PluginFormcreatorTargetTicket::class:
9595
$ticket = $this->targets['PluginFormcreatorTargetTicket'][$row['items_id']];
96+
if ($ticket === null) {
97+
continue;
98+
}
9699
$this->ticket_ticket->add([
97100
'link' => $row['link'],
98101
'tickets_id_1' => $generatedObject->getID(),

0 commit comments

Comments
 (0)