Fix varie
This commit is contained in:
parent
1b8c632d69
commit
5ecaf54c12
|
@ -40,7 +40,7 @@ if (isset($id_original)) {
|
|||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{[ "type": "text", "label": "<?php echo tr('Nome'); ?>", "name": "nome", "required": 1, "value": "<?php echo $categoria->getTranslation('name'); ?>" ]}
|
||||
{[ "type": "text", "label": "<?php echo tr('Nome'); ?>", "name": "nome", "required": 1, "value": "$name$" ]}
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
|
|
|
@ -37,7 +37,7 @@ switch (post('op')) {
|
|||
break;
|
||||
|
||||
case 'update':
|
||||
$record->setTranslation('name', post('name'));
|
||||
$record->name = post('name');
|
||||
|
||||
$record->id_module = post('module') ?: null;
|
||||
$record->id_plugin = post('plugin') ?: null;
|
||||
|
|
|
@ -26,7 +26,7 @@ $list = [];
|
|||
foreach ($checklists as $checklist) {
|
||||
$list[] = [
|
||||
'id' => $checklist->id,
|
||||
'text' => $checklist->getTranslation('name'),
|
||||
'text' => $checklist->name,
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ class Checklist extends Model
|
|||
{
|
||||
$model = new static();
|
||||
|
||||
$model->setTranslation('name', $nome);
|
||||
$model->name = $nome;
|
||||
$model->save();
|
||||
|
||||
return $model;
|
||||
|
|
|
@ -22,7 +22,7 @@ echo '
|
|||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
{[ "type": "text", "label": "'.tr('Nome').'", "name": "nome", "value": "'.$combinazione->getTranslation('name.').'", "required": 1, "help": "'.tr('Nome univoco della combinazione').'" ]}
|
||||
{[ "type": "text", "label": "'.tr('Nome').'", "name": "nome", "value": "'.$combinazione->getTranslation('name').'", "required": 1, "help": "'.tr('Nome univoco della combinazione').'" ]}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -2065,7 +2065,7 @@ HAVING
|
|||
ORDER BY `zz_segments_lang`.`name`,
|
||||
`zz_segments`.`id_module`" WHERE `zz_modules`.`id` = (SELECT `id_record` FROM `zz_modules_lang` WHERE `name` = 'Segmenti');
|
||||
UPDATE `zz_views` INNER JOIN `zz_modules` ON `zz_views`.`id_module` = `zz_modules`.`id` LEFT JOIN `zz_modules_lang` ON (`zz_modules_lang`.`id_record` = `zz_modules`.`id` AND `zz_modules_lang`.`id_lang` = (SELECT `valore` FROM `zz_settings` WHERE `nome` = "Lingua")) SET `zz_views`.`query` = '`zz_segments_lang`.`name`' WHERE `zz_modules_lang`.`name` = 'Segmenti' AND `zz_views`.`name` = 'Nome';
|
||||
UPDATE `zz_views` INNER JOIN `zz_modules` ON `zz_views`.`id_module` = `zz_modules`.`id` LEFT JOIN `zz_modules_lang` ON (`zz_modules_lang`.`id_record` = `zz_modules`.`id` AND `zz_modules_lang`.`id_lang` = (SELECT `valore` FROM `zz_settings` WHERE `nome` = "Lingua")) SET `zz_views`.`query` = '`zz_segments_lang`.`name`' WHERE `zz_modules_lang`.`name` = 'Segmenti' AND `zz_views`.`name` = 'Tipi documento';
|
||||
UPDATE `zz_views` INNER JOIN `zz_modules` ON `zz_views`.`id_module` = `zz_modules`.`id` LEFT JOIN `zz_modules_lang` ON (`zz_modules_lang`.`id_record` = `zz_modules`.`id` AND `zz_modules_lang`.`id_lang` = (SELECT `valore` FROM `zz_settings` WHERE `nome` = "Lingua")) SET `zz_views`.`query` = '`zz_segments_lang`.`name`' WHERE `zz_modules_lang`.`name` = 'Tipi documento' AND `zz_views`.`name` = 'Sezionale';
|
||||
|
||||
-- Aggiunta tabella zz_views_lang
|
||||
CREATE TABLE IF NOT EXISTS `zz_views_lang` (
|
||||
|
|
Loading…
Reference in New Issue