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.
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]));
}