Skip to content

Commit

Permalink
fix(targetchange,targetproblem): missed code refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Mar 17, 2023
1 parent 63cb85f commit e24d2fc
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 @@ -680,7 +680,7 @@ public function save(PluginFormcreatorFormAnswer $formanswer): ?CommonDBTM {
$this->prepareActors($form, $formanswer);

if (count($this->requesters['_users_id_requester']) == 0) {
$this->addActor('requester', $formanswer->fields['requester_id'], true);
$this->addActor(PluginFormcreatorTarget_Actor::ACTOR_ROLE_REQUESTER, $formanswer->fields['requester_id'], true);
$requesters_id = $formanswer->fields['requester_id'];
} else {
$requesterAccounts = array_filter($this->requesters['_users_id_requester'], function($v) {
Expand Down
2 changes: 1 addition & 1 deletion inc/targetproblem.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public function save(PluginFormcreatorFormAnswer $formanswer): ?CommonDBTM {
$this->prepareActors($form, $formanswer);

if (count($this->requesters['_users_id_requester']) == 0) {
$this->addActor('requester', $formanswer->fields['requester_id'], true);
$this->addActor(PluginFormcreatorTarget_Actor::ACTOR_ROLE_REQUESTER, $formanswer->fields['requester_id'], true);
$requesters_id = $formanswer->fields['requester_id'];
} else {
$requesterAccounts = array_filter($this->requesters['_users_id_requester'], function($v) {
Expand Down

0 comments on commit e24d2fc

Please sign in to comment.