From 8a42b2d3a2e2dedf297b78ba2e74a47054c82c3c Mon Sep 17 00:00:00 2001 From: valentina Date: Thu, 31 Oct 2024 15:01:45 +0100 Subject: [PATCH] fix: controlli su aggiornamenti --- modules/aggiornamenti/database.php | 7 +++++-- plugins/importFE/list.php | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/aggiornamenti/database.php b/modules/aggiornamenti/database.php index 2d1219008..6bec547d1 100644 --- a/modules/aggiornamenti/database.php +++ b/modules/aggiornamenti/database.php @@ -195,7 +195,10 @@ if (!empty($results) || !empty($results_added) || !empty($results_settings) || ! } else { $null = 'NULL'; } - $query .= str_replace('DEFAULT_GENERATED', ' ', $data[$table][$name]['extra']).' '.$null.' DEFAULT '.$data[$table][$name]['default'].';'; + $query .= str_replace('DEFAULT_GENERATED', ' ', $data[$table][$name]['extra']).' '.$null; + if ($data[$table][$name]['default']) { + $query .= ' DEFAULT '.$data[$table][$name]['default']; + } } echo ' @@ -204,7 +207,7 @@ if (!empty($results) || !empty($results_added) || !empty($results_settings) || ! '.$name.' - '.$query.' + '.$query.'; '; diff --git a/plugins/importFE/list.php b/plugins/importFE/list.php index e9f139db6..e106f6082 100755 --- a/plugins/importFE/list.php +++ b/plugins/importFE/list.php @@ -28,7 +28,7 @@ $directory = Plugins\ImportFE\FatturaElettronica::getImportDirectory(); if (!empty($list)) { echo ' - +
'.tr('Descrizione').'