Skip to content

Commit

Permalink
Fix : define Step by step interface on create / update metademands
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmr committed Jun 18, 2024
1 parent 35e5f7d commit 6c01f6a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion inc/metademand.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ public function post_addItem()

$confStep = new PluginMetademandsConfigstep();

$confStep->add(['plugin_metademands_metademands_id' => $this->fields['id']]);
$confStep->add(['plugin_metademands_metademands_id' => $this->fields['id'], 'step_by_step_interface' => PluginMetademandsConfigstep::BOTH_INTERFACE]);

if (isset($this->input["metademands_oldID"])) {

Expand Down Expand Up @@ -604,6 +604,12 @@ public function post_updateItem($history = 1)
}
}
}
$confStep = new PluginMetademandsConfigstep();

if (!$confStep->getFromDBByCrit(['plugin_metademands_metademands_id' => $this->fields['id']])) {
$confStep->add(['plugin_metademands_metademands_id' => $this->fields['id'],
'step_by_step_interface' => PluginMetademandsConfigstep::BOTH_INTERFACE]);
}
PluginMetademandsTicketField::updateMandatoryTicketFields($this->input);
}

Expand Down

0 comments on commit 6c01f6a

Please sign in to comment.