Skip to content

Commit

Permalink
fix(targetchange,targetproblem): harmonize implemetnation with target…
Browse files Browse the repository at this point in the history
…ticket
  • Loading branch information
btry committed Mar 15, 2023
1 parent 57bfe1d commit 1ba402d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/targetchange.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ public function save(PluginFormcreatorFormAnswer $formanswer): ?CommonDBTM {
$data[$changeField] = $formanswer->parseTags($data[$changeField], $this, $changeField == 'content');
}

$data['_users_id_recipient'] = $_SESSION['glpiID'];
$data['_users_id_recipient'] = $formanswer->fields['requester_id'];

$this->prepareActors($form, $formanswer);

Expand Down
2 changes: 1 addition & 1 deletion inc/targetproblem.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public function save(PluginFormcreatorFormAnswer $formanswer): ?CommonDBTM {
$data[$problemFields] = $formanswer->parseTags($data[$problemFields], $this, $problemFields == 'content');
}

$data['_users_id_recipient'] = $_SESSION['glpiID'];
$data['_users_id_recipient'] = $formanswer->fields['requester_id'];

$this->prepareActors($form, $formanswer);

Expand Down

0 comments on commit 1ba402d

Please sign in to comment.