Skip to content

Commit a6c07f3

Browse files
committed
fix(form_profile): undeclared vars
Signed-off-by: Thierry Bugier <[email protected]>
1 parent 80f742e commit a6c07f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inc/form_profile.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtem
121121
]
122122
],
123123
'WHERE' => [
124-
"$formProfile.$formFk" => $item->getID(),
124+
"$formProfileTable.$formFk" => $item->getID(),
125125
],
126126
]);
127127
foreach ($result as $row) {
@@ -190,7 +190,7 @@ public static function import(PluginFormcreatorLinker $linker, $input = [], $con
190190
if (isset($input['uuid'])) {
191191
$originalId = $input['uuid'];
192192
}
193-
$linker->addObject($originalId, $form_obj);
193+
$linker->addObject($originalId, $item);
194194

195195
return $formProfileId;
196196
}

0 commit comments

Comments
 (0)