From cea813109f0574ffc1f175f36ee40e1b6aba69a5 Mon Sep 17 00:00:00 2001 From: pek5892 Date: Thu, 6 Jun 2024 16:59:36 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20link=20modulo=20Attivit=C3=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/anagrafiche/edit.php | 2 +- modules/contratti/edit.php | 2 +- modules/tipi_intervento/edit.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/anagrafiche/edit.php b/modules/anagrafiche/edit.php index e57c63c53..15cd7fb13 100755 --- a/modules/anagrafiche/edit.php +++ b/modules/anagrafiche/edit.php @@ -778,7 +778,7 @@ if (!empty($elementi)) { // se non è un ddt è una fattura. if (in_array($elemento['tipo_documento'], ['Utente'])) { $modulo = 'Utenti e permessi'; - } elseif (in_array($elemento['tipo_documento'], ['Intervento'])) { + } elseif (in_array($elemento['tipo_documento'], ['Attività'])) { $modulo = 'Interventi'; } elseif (in_array($elemento['tipo_documento'], ['Preventivo'])) { $modulo = 'Preventivi'; diff --git a/modules/contratti/edit.php b/modules/contratti/edit.php index 2899c9335..0fcd50a65 100755 --- a/modules/contratti/edit.php +++ b/modules/contratti/edit.php @@ -611,7 +611,7 @@ if (!empty($elementi)) { ]); echo ' -
  • '.Modules::link($elemento['modulo'], $elemento['id'], $descrizione).'
  • '; +
  • '.Modules::link(($elemento['modulo'] == 'Interventi' ? 'Attività' : $elemento['modulo']), $elemento['id'], $descrizione).'
  • '; } echo ' diff --git a/modules/tipi_intervento/edit.php b/modules/tipi_intervento/edit.php index 20d546fd6..1f00f66e4 100755 --- a/modules/tipi_intervento/edit.php +++ b/modules/tipi_intervento/edit.php @@ -159,7 +159,7 @@ if (!empty($elementi)) { '_DATE_' => Translator::dateToLocale($elemento['data']), ]); - if (in_array($elemento['tipo_documento'], ['Intervento'])) { + if (in_array($elemento['tipo_documento'], ['Attività'])) { $modulo = 'Interventi'; } if (in_array($elemento['tipo_documento'], ['Sessione intervento'])) {