From 30b249b4c02441f632c1de5ef4be15968c1a1ded Mon Sep 17 00:00:00 2001 From: loviuz Date: Mon, 17 May 2021 17:31:03 +0200 Subject: [PATCH] =?UTF-8?q?Aggiunta=20possibilit=C3=A0=20di=20modificare?= =?UTF-8?q?=20richiesta=20promemoria=20in=20programmazione?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/interventi/actions.php | 4 ++++ modules/interventi/add.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/interventi/actions.php b/modules/interventi/actions.php index d6a498e7f..f2b8777c4 100644 --- a/modules/interventi/actions.php +++ b/modules/interventi/actions.php @@ -189,6 +189,10 @@ switch (post('op')) { } else { $id_record = post('id_intervento'); + $intervento = Intervento::find($id_record); + $intervento->richiesta = post('richiesta'); + $intervento->save(); + $idcontratto = $dbo->fetchOne('SELECT idcontratto FROM co_promemoria WHERE idintervento = :id', [ ':id' => $id_record, ])['idcontratto']; diff --git a/modules/interventi/add.php b/modules/interventi/add.php index 32719ec7f..37f88e503 100755 --- a/modules/interventi/add.php +++ b/modules/interventi/add.php @@ -332,6 +332,7 @@ if (!empty($id_intervento)) { input("idsede_destinazione").disable(); input("idpreventivo").disable(); input("idcontratto").disable(); + input("idordine").disable(); input("idimpianti").disable(); input("componenti").disable(); input("idanagrafica").disable(); @@ -339,7 +340,6 @@ if (!empty($id_intervento)) { input("idzona").disable(); input("idtipointervento").disable(); input("idstatointervento").disable(); - input("richiesta").disable(); input("data_richiesta").disable(); }); ';