Skip to content

Commit 1ba402d

Browse files
committed
fix(targetchange,targetproblem): harmonize implemetnation with targetticket
1 parent 57bfe1d commit 1ba402d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

inc/targetchange.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ public function save(PluginFormcreatorFormAnswer $formanswer): ?CommonDBTM {
675675
$data[$changeField] = $formanswer->parseTags($data[$changeField], $this, $changeField == 'content');
676676
}
677677

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

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

inc/targetproblem.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public function save(PluginFormcreatorFormAnswer $formanswer): ?CommonDBTM {
194194
$data[$problemFields] = $formanswer->parseTags($data[$problemFields], $this, $problemFields == 'content');
195195
}
196196

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

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

0 commit comments

Comments
 (0)