Skip to content

Commit 016696a

Browse files
committed
fix(targetchange,targetproblem): folow method call signature for fields plugin
1 parent 0a857d7 commit 016696a

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
@@ -702,7 +702,7 @@ public function save(PluginFormcreatorFormAnswer $formanswer): ?CommonDBTM {
702702

703703
$data = $this->prepareUploadedFiles($data, $formanswer);
704704

705-
$this->appendFieldsData($formanswer, $data);
705+
$data = $this->appendFieldsData($data, $formanswer);
706706

707707
// Cleanup actors array
708708
$data = $this->cleanActors($data);

inc/targetproblem.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ public function save(PluginFormcreatorFormAnswer $formanswer): ?CommonDBTM {
222222

223223
$data = $this->prepareUploadedFiles($data, $formanswer);
224224

225-
$this->appendFieldsData($formanswer, $data);
225+
$data = $this->appendFieldsData($data, $formanswer);
226226

227227
// Cleanup actors array
228228
$data = $this->cleanActors($data);

0 commit comments

Comments
 (0)