Skip to content

Commit d77b3fd

Browse files
committed
fix: query installazione plugin
1 parent b0c9af0 commit d77b3fd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

update/2_10.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,8 @@ ALTER TABLE `an_automezzi_scadenze` ADD CONSTRAINT `an_automezzi_scadenze_ibfk_1
312312
INSERT INTO `zz_plugins` (`name`, `idmodule_from`, `idmodule_to`, `position`, `script`, `enabled`, `default`, `order`, `compatibility`, `version`, `options`, `directory`, `help`) VALUES ('Manutenzioni', (SELECT `id` FROM `zz_modules` WHERE `name` = 'Automezzi'), (SELECT `id` FROM `zz_modules` WHERE `name` = 'Automezzi'), 'tab', '', '1', '0', '0', '2.*', '2.10', 'custom', 'automezzi_manutenzioni', '');
313313
INSERT INTO `zz_plugins_lang` (`id_lang`, `id_record`, `title`)
314314
VALUES
315-
(1, LAST_INSERT_ID(), 'Manutenzioni'),
316-
(2, LAST_INSERT_ID(), 'Maintenance');
315+
(1, (SELECT MAX(`id`) FROM `zz_plugins`), 'Manutenzioni'),
316+
(2, (SELECT MAX(`id`) FROM `zz_plugins`), 'Maintenance');
317317

318318
INSERT INTO `zz_plugins` (`name`, `idmodule_from`, `idmodule_to`, `position`, `script`, `enabled`, `default`, `order`, `compatibility`, `version`, `options`, `directory`, `help`) VALUES ('Scadenze', (SELECT `id` FROM `zz_modules` WHERE `name` = 'Automezzi'), (SELECT `id` FROM `zz_modules` WHERE `name` = 'Automezzi'), 'tab', '', '1', '0', '0', '2.*', '2.10', 'custom', 'automezzi_scadenze', '');
319319
INSERT INTO `zz_plugins_lang` (`id_lang`, `id_record`, `title`)

0 commit comments

Comments
 (0)