From 821fa31ade9732acb3251d08f65c6ab4b17d2597 Mon Sep 17 00:00:00 2001 From: Maxime Bourget Date: Sat, 15 Jun 2013 12:44:32 +0100 Subject: [PATCH] Fix sorting. Seems to nott work when they are more than 3 sorts. It's because db_pager sort thing in column order instead of click order. --- includes/picking.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/picking.inc b/includes/picking.inc index 1462b59..2713dc1 100644 --- a/includes/picking.inc +++ b/includes/picking.inc @@ -3,7 +3,7 @@ require_once($path_to_root.'/'.'sales/includes/sales_db.inc'); function process_picking_flag() { $id = find_submit('_chgpck', false); - if ($id != -1 && isset($_POST['pick'])) { + if ($id != null && $id != -1 && isset($_POST['pick'])) { $id = str_replace("_update", "", $id); change_pck_flag($id, isset($_POST['pick'][$id])); } -- 2.30.2