1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-23 05:54:03 +01:00

Fix minore

This commit is contained in:
Thomas Zilio 2018-06-25 20:50:40 +02:00
parent 6fecb90f8f
commit f3c62c2afc
2 changed files with 5 additions and 2 deletions

View File

@ -1,16 +1,19 @@
<?php
include_once __DIR__.'/core.php';
include_once __DIR__.'/../../core.php';
if (file_exists($docroot.'/modules/interventi/custom/modutil.php')) {
include_once $docroot.'/modules/interventi/custom/modutil.php';
} else {
include_once $docroot.'/modules/interventi/modutil.php';
}
if (file_exists($docroot.'/modules/articoli/custom/modutil.php')) {
include_once $docroot.'/modules/articoli/custom/modutil.php';
} else {
include_once $docroot.'/modules/articoli/modutil.php';
}
if (file_exists($docroot.'/modules/my_impianti/custom/modutil.php')) {
include_once $docroot.'/modules/my_impianti/custom/modutil.php';
} else {

View File

@ -46,7 +46,7 @@ ALTER TABLE `co_movimenti_modelli` ADD PRIMARY KEY (`id`);
ALTER TABLE `co_movimenti_modelli` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
-- Modulo modelli prima nota
INSERT INTO `zz_modules` (`id`, `name`, `title`, `directory`, `options`, `options2`, `icon`, `version`, `compatibility`, `order`, `parent`, `default`, `enabled`) VALUES (NULL, 'Modelli prima nota', 'Modelli prima nota', 'modelli_primanota', 'SELECT |select| FROM `co_movimenti_modelli` WHERE 1=1 GROUP BY `idmastrino` HAVING 2=2', '', 'fa fa-angle-right', '2.4.1', '2.4.1', '1', 1, '1', '1');
INSERT INTO `zz_modules` (`id`, `name`, `title`, `directory`, `options`, `options2`, `icon`, `version`, `compatibility`, `order`, `parent`, `default`, `enabled`) VALUES (NULL, 'Modelli prima nota', 'Modelli prima nota', 'modelli_primanota', 'SELECT |select| FROM `co_movimenti_modelli` WHERE 1=1 GROUP BY `idmastrino` HAVING 2=2', '', 'fa fa-angle-right', '2.4.1', '2.4.1', '1', NULL, '1', '1');
UPDATE `zz_modules` `t1` INNER JOIN `zz_modules` `t2` ON (`t1`.`name` = 'Modelli prima nota' AND `t2`.`name` = 'Tabelle') SET `t1`.`parent` = `t2`.`id`;