Fix #16241 Date filter resets on Miscellaneous Payments

Changed $search_date_start and $search_date_end variables to get values from search_date_start and search_date_end GET parameters if no their value is empty after checking POST parameters
This commit is contained in:
Iván Mestre 2021-02-10 15:03:17 -03:00
parent 90d1b2d349
commit a249f4f35a

View File

@ -53,6 +53,8 @@ $search_accountancy_account = GETPOST("search_accountancy_account");
if ($search_accountancy_account == - 1) $search_accountancy_account = '';
$search_accountancy_subledger = GETPOST("search_accountancy_subledger");
if ($search_accountancy_subledger == - 1) $search_accountancy_subledger = '';
if (empty($search_date_start)) $search_date_start = GETPOST("search_date_start", 'int');
if (empty($search_date_end)) $search_date_end = GETPOST("search_date_end", 'int');
$sortfield = GETPOST("sortfield", 'alpha');
$sortorder = GETPOST("sortorder", 'alpha');