fix: controlli su aggiornamenti

This commit is contained in:
valentina 2024-10-31 15:01:45 +01:00
parent 6a9b384a0e
commit 8a42b2d3a2
2 changed files with 6 additions and 3 deletions

View File

@ -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.'
</td>
<td>
'.$query.'
'.$query.';
</td>
</tr>';

View File

@ -28,7 +28,7 @@ $directory = Plugins\ImportFE\FatturaElettronica::getImportDirectory();
if (!empty($list)) {
echo '
<table class="table table-striped table-hover table-sm table-bordered datatables">
<table class="table table-striped table-hover table-sm table-bordered">
<thead>
<tr>
<th>'.tr('Descrizione').'</th>