Skip to content

Commit

Permalink
fix(target): actors not inserted on tarrgets
Browse files Browse the repository at this point in the history
Signed-off-by: btry <tbugier@teclib.com>
  • Loading branch information
btry committed Oct 8, 2018
1 parent 26568f4 commit 18b5662
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/targetbase.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ protected function prepareActors(PluginFormcreatorForm $form, PluginFormcreatorF
if ($answer->isNewItem()) {
continue 2;
} else {
$userIds = array_filter(explode(',', trim($answer->getField('answer'))));
$userIds = json_decode($answer->fields['answer'], JSON_OBJECT_AS_ARRAY);
}
$notify = $actor['use_notification'];
break;
Expand Down Expand Up @@ -274,7 +274,7 @@ protected function addActor($role, $user, $notify) {
$userId = 0;
$alternativeEmail = $user;
} else {
$userId = intval($user);
$userId = (int) $user;
$alternativeEmail = '';
if ($userId == '0') {
// there is no actor
Expand Down

0 comments on commit 18b5662

Please sign in to comment.