Skip to content

Commit

Permalink
fix(targetticket,targetchange): bad return value in setTargetEntity
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
btry committed Mar 18, 2021
1 parent e7bd38e commit e0ddd2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/abstracttarget.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ protected function setTargetEntity($data, PluginFormcreatorFormAnswer $formanswe
}
if (count($data_entities) < 1) {
// No entity found
return $entityId;
break;
}
$first_entity = array_shift($data_entities);
$entityId = $first_entity[$entityFk];
Expand Down

0 comments on commit e0ddd2d

Please sign in to comment.