diff --git a/inc/targetchange.class.php b/inc/targetchange.class.php
index 4c514489c..0ca3bcd47 100644
--- a/inc/targetchange.class.php
+++ b/inc/targetchange.class.php
@@ -369,10 +369,16 @@ public function showForm($ID, $options = []) {
// Buttons
echo '
';
+ echo '';
+ echo '';
+ $formFk = PluginFormcreatorForm::getForeignKeyField();
+ echo Html::hidden('id', ['value' => $ID]);
+ echo Html::hidden($formFk, ['value' => $this->fields[$formFk]]);
+ echo ' | ';
+ echo '
';
+
echo '';
echo '';
- echo Html::hidden('id', ['value' => $this->getID()]);
- // echo '';
echo Html::submit(_x('button', 'Save'), ['name' => 'update']);
echo ' | ';
echo '
';
diff --git a/inc/targetticket.class.php b/inc/targetticket.class.php
index cf8495916..e360882c2 100644
--- a/inc/targetticket.class.php
+++ b/inc/targetticket.class.php
@@ -229,10 +229,16 @@ public function showForm($ID, $options = []) {
// Buttons
echo '';
+ echo '';
+ echo '';
+ $formFk = PluginFormcreatorForm::getForeignKeyField();
+ echo Html::hidden('id', ['value' => $ID]);
+ echo Html::hidden($formFk, ['value' => $this->fields[$formFk]]);
+ echo ' | ';
+ echo '
';
+
echo '';
echo '';
- echo Html::hidden('id', ['value' => $this->getID()]);
- echo ' ';
echo Html::submit(_x('button', 'Save'), ['name' => 'update']);
echo ' | ';
echo '
';