Fix salvataggio Stampe
This commit is contained in:
parent
bb43544c59
commit
cb2da9f991
|
@ -26,7 +26,7 @@ switch (post('op')) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$print->setTranslation('title', post('title'));
|
$print->setTranslation('title', post('title'));
|
||||||
$print->filename = post('filename');
|
$print->setTranslation('filename', post('filename'));
|
||||||
$print->options = post('options');
|
$print->options = post('options');
|
||||||
$print->order = post('order');
|
$print->order = post('order');
|
||||||
$print->predefined = intval(post('predefined'));
|
$print->predefined = intval(post('predefined'));
|
||||||
|
@ -34,7 +34,7 @@ switch (post('op')) {
|
||||||
|
|
||||||
// Gestione file allegati
|
// Gestione file allegati
|
||||||
$dbo->delete('zz_files_print', ['id_print' => $id_record]);
|
$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) {
|
foreach ($id_files as $id_file) {
|
||||||
$dbo->insert('zz_files_print', [
|
$dbo->insert('zz_files_print', [
|
||||||
'id_print' => $id_record,
|
'id_print' => $id_record,
|
||||||
|
|
Loading…
Reference in New Issue