Kaynağa Gözat

#62 - Minor fixes.

AntonLV 12 yıl önce
ebeveyn
işleme
d5c7efabcb

+ 1 - 1
modules/boonex/notifications/install/sql/enable.sql

@@ -18,7 +18,7 @@ INSERT INTO `sys_menu_items` (`set_name`, `module`, `name`, `title_system`, `tit
 -- SETTINGS
 -- SETTINGS
 SET @iTypeOrder = (SELECT IFNULL(MAX(`order`), 0) FROM `sys_options_types` WHERE `group` = 'modules');
 SET @iTypeOrder = (SELECT IFNULL(MAX(`order`), 0) FROM `sys_options_types` WHERE `group` = 'modules');
 INSERT INTO `sys_options_types`(`group`, `name`, `caption`, `icon`, `order`) VALUES 
 INSERT INTO `sys_options_types`(`group`, `name`, `caption`, `icon`, `order`) VALUES 
-('modules', @sName, '_bx_ntfs', 'bx_notifications@modules/boonex/notifications/|std-mi.png', IF(ISNULL(@iTypeOrder), 1, @iTypeOrder + 1));
+('modules', @sName, '_bx_ntfs', 'bx_notifications@modules/boonex/notifications/|std-mi.png', @iTypeOrder + 1);
 SET @iTypeId = LAST_INSERT_ID();
 SET @iTypeId = LAST_INSERT_ID();
 
 
 INSERT INTO `sys_options_categories` (`type_id`, `name`, `caption`, `order`)
 INSERT INTO `sys_options_categories` (`type_id`, `name`, `caption`, `order`)