Imported From: http://groups.google.com/group/in-portal-dev/browse_thread/thread/f3af342eaed10795#
I have a question bout check of values in "ListSortings" config option in SetSorting method of kDBEventHandler class.
In particular it's done with code:
$sorting_prefix = getArrayValue($list_sortings, $event->Special) ? $event->Special : '';
I have debugged this with Zend and found that I get $sorting_prefix = '' even in case if I have something like this for SEARCH prefix:
'ListSortings' => array(
'' => array(
'ForcedSorting' => array("CurrentSort" => 'asc', 'Priority' => 'desc', 'Name' => 'asc'),
'Sorting' => array('Name' => 'asc'),
'search' => array(),
The problem I am having is that these sorting are always applied even if I am trying to ClearOrderFields in SetCustomQuery method since I do NOT want any sorting at all.
What if we do code below?
$sorting_prefix = in_array($event->Special, $list_sortings) ? $event->Special : '';
INP-563Getting issue details...