From: Maxime Bourget Date: Sat, 15 Jun 2013 11:44:32 +0000 (+0100) Subject: Fix sorting. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=821fa31ade9732acb3251d08f65c6ab4b17d2597;p=order_line_extra.git 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. --- 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])); }