From 66af3dacf3822e10cf9e68e8b66fdc37d9ff2765 Mon Sep 17 00:00:00 2001 From: loviuz Date: Fri, 10 Jun 2022 08:35:51 +0200 Subject: [PATCH] Aggiunta scelta minuti di snap in dashboard --- modules/dashboard/edit.php | 1 + update/2_4_34.sql | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/dashboard/edit.php b/modules/dashboard/edit.php index 6ff7a9563..a6bac8198 100755 --- a/modules/dashboard/edit.php +++ b/modules/dashboard/edit.php @@ -520,6 +520,7 @@ echo ' timeFormat: globals.dashboard.timeFormat, slotLabelFormat: globals.dashboard.timeFormat, slotDuration: "00:15:00", + snapDuration: "'.setting('Tempo predefinito di snap attività sul calendario').'", defaultView: globals.dashboard.style, minTime: globals.dashboard.start_time, maxTime: globals.dashboard.end_time, diff --git a/update/2_4_34.sql b/update/2_4_34.sql index a902b77ed..76046b945 100644 --- a/update/2_4_34.sql +++ b/update/2_4_34.sql @@ -48,4 +48,7 @@ ALTER TABLE `in_fasceorarie` ADD `deleted_at` TIMESTAMP NULL AFTER `include_bank UPDATE `zz_modules` SET `options` = 'SELECT |select| FROM `in_fasceorarie` WHERE 1=1 AND deleted_at IS NULL HAVING 2=2' WHERE `zz_modules`.`name` = 'Fasce orarie'; -- Stampa Barcode bulk -INSERT INTO `zz_prints` (`id`, `id_module`, `is_record`, `name`, `title`, `filename`, `directory`, `previous`, `options`, `icon`, `version`, `compatibility`, `order`, `predefined`, `default`, `enabled`) VALUES (NULL, (SELECT `id` FROM `zz_modules` WHERE `name` = 'Articoli'), '0', 'Barcode bulk', 'Barcode', 'Barcode', 'barcode_bulk', '', '', 'fa fa-print', '', '', '0', '1', '1', '1'); \ No newline at end of file +INSERT INTO `zz_prints` (`id`, `id_module`, `is_record`, `name`, `title`, `filename`, `directory`, `previous`, `options`, `icon`, `version`, `compatibility`, `order`, `predefined`, `default`, `enabled`) VALUES (NULL, (SELECT `id` FROM `zz_modules` WHERE `name` = 'Articoli'), '0', 'Barcode bulk', 'Barcode', 'Barcode', 'barcode_bulk', '', '', 'fa fa-print', '', '', '0', '1', '1', '1'); + +-- Aggiunta scelta minuti di snap in dashboard +INSERT INTO `zz_settings` (`id`, `nome`, `valore`, `tipo`, `editable`, `sezione`, `order`, `help`) VALUES (NULL, 'Tempo predefinito di snap attività sul calendario', '00:15:00', 'string', '1', 'Dashboard', '5', 'Va utilizzato il formato di Fullcalendar: hh:mm:ss');