mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-18 04:20:50 +01:00
Fix minori
This commit is contained in:
parent
f57ee2ab7e
commit
672c9ce34e
@ -32,9 +32,6 @@ switch (filter('op')) {
|
|||||||
$categoria->parent = $id_original ?: null;
|
$categoria->parent = $id_original ?: null;
|
||||||
$categoria->setTranslation('title', $nome);
|
$categoria->setTranslation('title', $nome);
|
||||||
$categoria->setTranslation('note', $nota);
|
$categoria->setTranslation('note', $nota);
|
||||||
if (Models\Locale::getDefault()->id == Models\Locale::getPredefined()->id) {
|
|
||||||
$categoria->name = $descrizione;
|
|
||||||
}
|
|
||||||
$categoria->save();
|
$categoria->save();
|
||||||
|
|
||||||
flash()->info(tr('Salvataggio completato!'));
|
flash()->info(tr('Salvataggio completato!'));
|
||||||
@ -69,9 +66,6 @@ switch (filter('op')) {
|
|||||||
flash()->error(tr('Questo nome è già stato utilizzato per un altra categoria.'));
|
flash()->error(tr('Questo nome è già stato utilizzato per un altra categoria.'));
|
||||||
} else {
|
} else {
|
||||||
$categoria = Categoria::build($colore);
|
$categoria = Categoria::build($colore);
|
||||||
if (Models\Locale::getDefault()->id == Models\Locale::getPredefined()->id) {
|
|
||||||
$categoria->name = $descrizione;
|
|
||||||
}
|
|
||||||
$id_record = $dbo->lastInsertedID();
|
$id_record = $dbo->lastInsertedID();
|
||||||
$categoria->parent = $id_original;
|
$categoria->parent = $id_original;
|
||||||
$categoria->setTranslation('note', $nota);
|
$categoria->setTranslation('note', $nota);
|
||||||
|
@ -43,7 +43,7 @@ use Models\Module;
|
|||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
{[ "type": "textarea", "label": "<?php echo tr('Nota'); ?>", "name": "nota", "value": "$nota$" ]}
|
{[ "type": "textarea", "label": "<?php echo tr('Nota'); ?>", "name": "nota", "value": "$note$" ]}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -33,7 +33,7 @@ echo '
|
|||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
{[ "type": "text", "label": "'.tr('Nome').'", "name": "name", "value": "$title$", "required": 1 ]}
|
{[ "type": "text", "label": "'.tr('Nome').'", "name": "name", "value": "$name$", "required": 1 ]}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
|
@ -60,7 +60,7 @@ switch (post('op')) {
|
|||||||
], ['id' => $id_record]);
|
], ['id' => $id_record]);
|
||||||
|
|
||||||
$dbo->update('zz_segments_lang', [
|
$dbo->update('zz_segments_lang', [
|
||||||
'name' => post('name'),
|
'title' => post('name'),
|
||||||
], ['id_record' => $id_record, 'id_lang' => Models\Locale::getDefault()->id]);
|
], ['id_record' => $id_record, 'id_lang' => Models\Locale::getDefault()->id]);
|
||||||
|
|
||||||
// Aggiornamento dei permessi relativi
|
// Aggiornamento dei permessi relativi
|
||||||
@ -95,7 +95,7 @@ switch (post('op')) {
|
|||||||
$id_record = $dbo->lastInsertedID();
|
$id_record = $dbo->lastInsertedID();
|
||||||
|
|
||||||
$dbo->insert('zz_segments_lang', [
|
$dbo->insert('zz_segments_lang', [
|
||||||
'name' => post('name'),
|
'title' => post('name'),
|
||||||
'id_record' => $id_record,
|
'id_record' => $id_record,
|
||||||
'id_lang' => Models\Locale::getDefault()->id,
|
'id_lang' => Models\Locale::getDefault()->id,
|
||||||
]);
|
]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user