Fix add hidden option INVOICE_DEFAULT_UNPAYED_SORT_ORDER to be able to
provide backward compatibility with old behaviour.
This commit is contained in:
parent
4b28dadd6e
commit
21c7aacddb
@ -83,6 +83,7 @@ if ($page == -1) {
|
|||||||
$page = 0;
|
$page = 0;
|
||||||
}
|
}
|
||||||
$offset = $limit * $page;
|
$offset = $limit * $page;
|
||||||
|
if (! $sortorder && ! empty($conf->global->INVOICE_DEFAULT_UNPAYED_SORT_ORDER) && $search_status == 1) $sortorder=$conf->global->INVOICE_DEFAULT_UNPAYED_SORT_ORDER;
|
||||||
if (! $sortorder) $sortorder='DESC';
|
if (! $sortorder) $sortorder='DESC';
|
||||||
if (! $sortfield) $sortfield='f.datef';
|
if (! $sortfield) $sortfield='f.datef';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user