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 : '';
Cheers!
DA.
> --
> To unsubscribe, reply using "remove me" as the subject.
>
--
Sent from my mobile device
Best Regards,
About checking other special-based unit config properties ItemSQLs,
ListSQLs, CalculatedFields. Do you mean you want me to check if they
have similar issue as described above or that SetSorting applies to
them and should be checked there too? I actually think SetSorting only
applies to the lists. Anyway would you please clarify your last note.
Thanks.
DA.