From 6c01f6a66c87f519fcd6f5ff55c51dad7ee32d14 Mon Sep 17 00:00:00 2001 From: Thetsmr Date: Tue, 18 Jun 2024 09:02:51 +0200 Subject: [PATCH] Fix : define Step by step interface on create / update metademands --- inc/metademand.class.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/inc/metademand.class.php b/inc/metademand.class.php index 6bfbadb2..da4ba7cd 100644 --- a/inc/metademand.class.php +++ b/inc/metademand.class.php @@ -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"])) { @@ -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); }