|
|
@@ -159,9 +159,10 @@ INSERT INTO `sys_objects_vote`(`Name`, `TableMain`, `TableTrack`, `PostTimeout`,
|
|
|
|
|
|
|
|
|
-- SEARCH
|
|
|
-INSERT INTO `sys_objects_search` (`ObjectName`, `Title`, `ClassName`, `ClassPath`) VALUES
|
|
|
-('bx_timeline', '_bx_timeline', 'BxTimelineSearchResult', 'modules/boonex/timeline/classes/BxTimelineSearchResult.php'),
|
|
|
-('bx_timeline_cmts', '_bx_timeline_cmts', 'BxTimelineCmtsSearchResult', 'modules/boonex/timeline/classes/BxTimelineCmtsSearchResult.php');
|
|
|
+SET @iSearchOrder = (SELECT IFNULL(MAX(`order`), 0) FROM `sys_objects_search`);
|
|
|
+INSERT INTO `sys_objects_search` (`ObjectName`, `Title`, `Order`, `ClassName`, `ClassPath`) VALUES
|
|
|
+('bx_timeline', '_bx_timeline', @iSearchOrder + 1, 'BxTimelineSearchResult', 'modules/boonex/timeline/classes/BxTimelineSearchResult.php'),
|
|
|
+('bx_timeline_cmts', '_bx_timeline_cmts', @iSearchOrder + 2, 'BxTimelineCmtsSearchResult', 'modules/boonex/timeline/classes/BxTimelineCmtsSearchResult.php');
|
|
|
|
|
|
|
|
|
-- METATAGS
|
|
|
@@ -171,4 +172,4 @@ INSERT INTO `sys_objects_metatags` (`object`, `table_keywords`, `table_locations
|
|
|
|
|
|
-- MODULES' CONNECTIONS
|
|
|
INSERT INTO `sys_modules_relations` (`module`, `on_install`, `on_uninstall`, `on_enable`, `on_disable`) VALUES
|
|
|
-('bx_timeline', '', 'delete_module_events', 'add_handlers', 'delete_handlers');
|
|
|
+('bx_timeline', '', 'delete_module_events', 'add_handlers', 'delete_handlers');
|