Rimosso required su data in gestione documentale
This commit is contained in:
parent
dccf5fe84c
commit
c50a31f09e
|
@ -24,7 +24,7 @@ switch (post('op')) {
|
|||
$dbo->insert('do_documenti', [
|
||||
'idcategoria' => post('idcategoria'),
|
||||
'nome' => post('nome'),
|
||||
'data' => post('data'),
|
||||
'data' => post('data') ?: null,
|
||||
]);
|
||||
$id_record = $dbo->lastInsertedID();
|
||||
|
||||
|
@ -36,7 +36,7 @@ switch (post('op')) {
|
|||
$dbo->update('do_documenti', [
|
||||
'idcategoria' => post('idcategoria'),
|
||||
'nome' => post('nome'),
|
||||
'data' => post('data'),
|
||||
'data' => post('data') ?: null,
|
||||
], ['id' => $id_record]);
|
||||
|
||||
flash()->info(tr('Informazioni salvate correttamente!'));
|
||||
|
|
|
@ -34,7 +34,7 @@ include_once __DIR__.'/../../core.php';
|
|||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
{[ "type": "text", "label": "Data", "name": "data", "required": 1, "class": "datepicker text-center", "value": "", "extra": "" ]}
|
||||
{[ "type": "text", "label": "Data", "name": "data", "class": "datepicker text-center", "value": "", "extra": "" ]}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ include_once __DIR__.'/../../core.php';
|
|||
|
||||
|
||||
<div class="col-md-3">
|
||||
{[ "type": "date", "label": "Data", "name": "data", "required": 1, "class": "datepicker text-center", "value": "$data$", "extra": "" ]}
|
||||
{[ "type": "date", "label": "Data", "name": "data", "class": "datepicker text-center", "value": "$data$", "extra": "" ]}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -181,3 +181,6 @@ ALTER TABLE `co_banche` ADD `branch_code` VARCHAR(20) NULL,
|
|||
ADD `national_check_digits` VARCHAR(20) NULL,
|
||||
ADD `id_nazione` INT(11) NULL,
|
||||
ADD FOREIGN KEY (`id_nazione`) REFERENCES `an_nazioni`(`id`);
|
||||
|
||||
-- Fix gestione documentale
|
||||
UPDATE `zz_modules` SET `options` = 'SELECT |select| FROM `do_documenti`\r\nINNER JOIN `do_categorie` ON `do_categorie`.`id` = `do_documenti`.`idcategoria`\r\nWHERE 1=1 AND `deleted_at` IS NULL AND\r\n (SELECT `idgruppo` FROM `zz_users` WHERE `zz_users`.`id` = |id_utente|) IN (SELECT `id_gruppo` FROM `do_permessi` WHERE `id_categoria` = `do_documenti`.`idcategoria`)\r\n |date_period(`data`)| OR data IS NULL\r\nHAVING 2=2' WHERE `zz_modules`.`name` = 'Gestione documentale';
|
Loading…
Reference in New Issue