Merge pull request #18072 from Hystepik/develop#1

Fix #18063 : search filter status lost "Back to list"
This commit is contained in:
Laurent Destailleur 2021-07-02 16:03:41 +02:00 committed by GitHub
commit a562cd227a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3017,13 +3017,13 @@ class CommandeFournisseur extends CommonOrder
$response->warning_delay = $conf->commande->fournisseur->warning_delay / 60 / 60 / 24;
$response->label = $langs->trans("SuppliersOrdersToProcess");
$response->labelShort = $langs->trans("Opened");
$response->url = DOL_URL_ROOT.'/fourn/commande/list.php?statut=1,2&mainmenu=commercial&leftmenu=orders_suppliers';
$response->url = DOL_URL_ROOT.'/fourn/commande/list.php?search_status=1,2&mainmenu=commercial&leftmenu=orders_suppliers';
$response->img = img_object('', "order");
if ($mode === 'awaiting') {
$response->label = $langs->trans("SuppliersOrdersAwaitingReception");
$response->labelShort = $langs->trans("AwaitingReception");
$response->url = DOL_URL_ROOT.'/fourn/commande/list.php?statut=3,4&mainmenu=commercial&leftmenu=orders_suppliers';
$response->url = DOL_URL_ROOT.'/fourn/commande/list.php?search_status=3,4&mainmenu=commercial&leftmenu=orders_suppliers';
}
while ($obj = $this->db->fetch_object($resql)) {