From a52f568ab9b222f7175fc48a30c63d5c137a80ba Mon Sep 17 00:00:00 2001 From: valentina Date: Wed, 26 Jun 2024 16:18:18 +0200 Subject: [PATCH] Fix minore --- modules/fatture/edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/fatture/edit.php b/modules/fatture/edit.php index fe025f1e5..f9978f3e9 100755 --- a/modules/fatture/edit.php +++ b/modules/fatture/edit.php @@ -262,7 +262,7 @@ if ($righe_vuote) { $query = 'SELECT `co_statidocumento`.*, `co_statidocumento`.`id` AS id, `colore` AS _bgcolor_, `co_statidocumento_lang`.`title` as descrizione FROM `co_statidocumento` LEFT JOIN `co_statidocumento_lang` ON (`co_statidocumento_lang`.`id_record` = `co_statidocumento`.`id` AND `co_statidocumento_lang`.`id_lang` = '.prepare(Models\Locale::getDefault()->id).')'; if (empty($record['is_fiscale'])) { - $query .= " WHERE `co_statidocumento`.`id` = '.$id_stato_bozza.'"; + $query .= " WHERE `co_statidocumento`.`id` = $id_stato_bozza"; $plugin = $dbo->fetchArray('SELECT `zz_plugins`.`id` FROM `zz_plugins` LEFT JOIN `zz_plugins_lang` ON (`zz_plugins`.`id` = `zz_plugins_lang`.`id_record` AND `zz_plugins_lang`.`id_lang` = '.prepare(Models\Locale::getDefault()->id).") WHERE `title`='Fatturazione Elettronica' AND `idmodule_to` = ".prepare($id_module)); echo '';