Index: branches/5.2.x/core/kernel/db/db_event_handler.php =================================================================== diff -u -N -r14632 -r14646 --- branches/5.2.x/core/kernel/db/db_event_handler.php (.../db_event_handler.php) (revision 14632) +++ branches/5.2.x/core/kernel/db/db_event_handler.php (.../db_event_handler.php) (revision 14646) @@ -1,6 +1,6 @@ setEventParam('raise_warnings', 1); } + if ( $event->Special == 'previous' || $event->Special == 'next' ) { + $object =& $this->Application->recallObject( $event->getEventParam('item') ); + /* @var $object kDBItem */ + + $list_helper =& $this->Application->recallObject('ListHelper'); + /* @var $list_helper ListHelper */ + + return $list_helper->getNavigationResource($object, $event->getEventParam('list'), $event->Special == 'next'); + } + if (preg_match('/^auto-(.*)/', $event->Special, $regs) && $this->Application->prefixRegistred($regs[1])) { // - returns field DateFormat value from language (LanguageId is extracted from current phrase object) $main_object =& $this->Application->recallObject($regs[1]); @@ -1010,6 +1020,9 @@ $this->Application->ConfigValue($sorting_configs['DefaultSorting1Field']) => $this->Application->ConfigValue($sorting_configs['DefaultSorting1Dir']), $this->Application->ConfigValue($sorting_configs['DefaultSorting2Field']) => $this->Application->ConfigValue($sorting_configs['DefaultSorting2Dir']), ); + + // TODO: lowercase configuration variable values in db, instead of here + $list_sortings[$sorting_prefix]['Sorting'] = array_map('strtolower', $list_sortings[$sorting_prefix]['Sorting']); } // use default if not specified in session