Fix salvataggio Stampe

This commit is contained in:
Pek5892 2024-05-20 11:12:08 +02:00
parent bb43544c59
commit cb2da9f991
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ switch (post('op')) {
}
$print->setTranslation('title', post('title'));
$print->filename = post('filename');
$print->setTranslation('filename', post('filename'));
$print->options = post('options');
$print->order = post('order');
$print->predefined = intval(post('predefined'));
@ -34,7 +34,7 @@ switch (post('op')) {
// Gestione file allegati
$dbo->delete('zz_files_print', ['id_print' => $id_record]);
$id_files = (array) post('id_files');
$id_files = !empty(post('id_files')) ? post('id_files') : [];
foreach ($id_files as $id_file) {
$dbo->insert('zz_files_print', [
'id_print' => $id_record,