mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 02:14:45 +01:00
Fix error when sorting/filtering (showed up in timesheet)
This commit is contained in:
parent
c230e5f99a
commit
155e3ab3b5
@ -137,6 +137,10 @@ class etemplate_widget_nextmatch extends etemplate_widget
|
||||
$value = array_merge($value, $filters);
|
||||
$result = array('rows' => array());
|
||||
|
||||
// Parse sort into something that get_rows functions are expecting: db_field ASC/DESC
|
||||
if(is_array($value['sort']))
|
||||
$value['sort'] = $value['sort']['id'] . ' ' . $value['sort']['asc'] ? 'ASC' : 'DESC';
|
||||
|
||||
foreach ($fetchList as $entry)
|
||||
{
|
||||
$value['start'] = $entry['startIdx'];
|
||||
|
Loading…
Reference in New Issue
Block a user