Skip to content

Commit eff7ade

Browse files
committed
fix(targetticket,targetchange): bad return value in setTargetEntity
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
1 parent 4ebbac6 commit eff7ade

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/abstracttarget.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ protected function setTargetEntity($data, PluginFormcreatorFormAnswer $formanswe
336336
}
337337
if (count($data_entities) < 1) {
338338
// No entity found
339-
return $entityId;
339+
break;
340340
}
341341
$first_entity = array_shift($data_entities);
342342
$entityId = $first_entity[$entityFk];

0 commit comments

Comments
 (0)