Skip to content
Snippets Groups Projects
Commit 21c7aacd authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix add hidden option INVOICE_DEFAULT_UNPAYED_SORT_ORDER to be able to

provide backward compatibility with old behaviour.
parent 4b28dadd
Branches
Tags
No related merge requests found
......@@ -83,6 +83,7 @@ if ($page == -1) {
$page = 0;
}
$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 (! $sortfield) $sortfield='f.datef';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment