! -> Note
$ -> Affected files
+08-Oct-2008 Janusz Dobrowolski
+# [0000071] Ordering from customer on hold was possible after double exact search in list.
+$ /sales/includes/ui/sales_order_ui.inc
+
------------------------------- Release 2.0.3 --------------------------------------------
07-Oct-2008 Joe Hunt
! Release 2.0.3
customer_branches_list_row(_("Branch:"),
$_POST['customer_id'], 'branch_id', null, false, true, true);
+ if( ($order->customer_id != get_post('customer_id', -1)) ||
+ ($order->Branch != get_post('branch_id', -1)) ||
+ list_updated('customer_id')) {
+
if (!isset($_POST['branch_id']) || $_POST['branch_id'] == "")
{
// ignore errors on customer search box call
$order->Branch = 0;
} else
{
- if( ($order->customer_id != get_post('customer_id', -1)) ||
- ($order->Branch != get_post('branch_id', -1))) {
$old_order = (PHP_VERSION<5) ? $order : clone( $order );
$customer_error = get_customer_details_to_order($order, $_POST['customer_id'], $_POST['branch_id']);
}
unset($old_order);
}
- } // changed branch
set_global_customer($_POST['customer_id']);
+ } // changed branch
}
if ($_SESSION['Items']->trans_type!=30) {