From 672c9ce34eb4b8876ab2d8ca23b07e468ab12d63 Mon Sep 17 00:00:00 2001 From: Pek5892 Date: Tue, 23 Apr 2024 15:25:32 +0200 Subject: [PATCH] Fix minori --- modules/categorie_articoli/actions.php | 6 ------ modules/categorie_articoli/edit.php | 2 +- modules/checklists/edit.php | 2 +- modules/segmenti/actions.php | 4 ++-- 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/modules/categorie_articoli/actions.php b/modules/categorie_articoli/actions.php index 1f58c0269..144f9a45e 100755 --- a/modules/categorie_articoli/actions.php +++ b/modules/categorie_articoli/actions.php @@ -32,9 +32,6 @@ switch (filter('op')) { $categoria->parent = $id_original ?: null; $categoria->setTranslation('title', $nome); $categoria->setTranslation('note', $nota); - if (Models\Locale::getDefault()->id == Models\Locale::getPredefined()->id) { - $categoria->name = $descrizione; - } $categoria->save(); flash()->info(tr('Salvataggio completato!')); @@ -69,9 +66,6 @@ switch (filter('op')) { flash()->error(tr('Questo nome è già stato utilizzato per un altra categoria.')); } else { $categoria = Categoria::build($colore); - if (Models\Locale::getDefault()->id == Models\Locale::getPredefined()->id) { - $categoria->name = $descrizione; - } $id_record = $dbo->lastInsertedID(); $categoria->parent = $id_original; $categoria->setTranslation('note', $nota); diff --git a/modules/categorie_articoli/edit.php b/modules/categorie_articoli/edit.php index aad84861b..24a2cbbbc 100755 --- a/modules/categorie_articoli/edit.php +++ b/modules/categorie_articoli/edit.php @@ -43,7 +43,7 @@ use Models\Module;
- {[ "type": "textarea", "label": "", "name": "nota", "value": "$nota$" ]} + {[ "type": "textarea", "label": "", "name": "nota", "value": "$note$" ]}
diff --git a/modules/checklists/edit.php b/modules/checklists/edit.php index c25ccc881..7b36198b4 100755 --- a/modules/checklists/edit.php +++ b/modules/checklists/edit.php @@ -33,7 +33,7 @@ echo '
- {[ "type": "text", "label": "'.tr('Nome').'", "name": "name", "value": "$title$", "required": 1 ]} + {[ "type": "text", "label": "'.tr('Nome').'", "name": "name", "value": "$name$", "required": 1 ]}
diff --git a/modules/segmenti/actions.php b/modules/segmenti/actions.php index f2dd864e1..992ac3a23 100755 --- a/modules/segmenti/actions.php +++ b/modules/segmenti/actions.php @@ -60,7 +60,7 @@ switch (post('op')) { ], ['id' => $id_record]); $dbo->update('zz_segments_lang', [ - 'name' => post('name'), + 'title' => post('name'), ], ['id_record' => $id_record, 'id_lang' => Models\Locale::getDefault()->id]); // Aggiornamento dei permessi relativi @@ -95,7 +95,7 @@ switch (post('op')) { $id_record = $dbo->lastInsertedID(); $dbo->insert('zz_segments_lang', [ - 'name' => post('name'), + 'title' => post('name'), 'id_record' => $id_record, 'id_lang' => Models\Locale::getDefault()->id, ]);