Skip to content

Commit

Permalink
fix(target_actor): unable to add some actors
Browse files Browse the repository at this point in the history
actors not having an ID triggers a SQL error
  • Loading branch information
btry committed Jan 31, 2022
1 parent 2c3702d commit 16c35f3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions front/targetticket.form.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@

} else if (isset($_POST['actor_role'])) {
$id = (int) $_POST['id'];
$actor_value = isset($_POST['actor_value_' . $_POST['actor_type']])
? $_POST['actor_value_' . $_POST['actor_type']]
: '';
$actor_value = $_POST['actor_value_' . $_POST['actor_type']] ?? null;
$use_notification = ($_POST['use_notification'] == 0) ? 0 : 1;
$targetTicket_actor = new PluginFormcreatorTarget_Actor();
$targetTicket_actor->add([
Expand Down

0 comments on commit 16c35f3

Please sign in to comment.