From fd866d00932b852aab01fd99b9b1fb948eb4d6a9 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Fri, 26 Nov 2010 10:07:01 +0000 Subject: [PATCH] Fixed tabs switching --- sales/manage/customer_branches.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sales/manage/customer_branches.php b/sales/manage/customer_branches.php index 537a5891..2d367360 100644 --- a/sales/manage/customer_branches.php +++ b/sales/manage/customer_branches.php @@ -177,8 +177,7 @@ function branch_settings($selected_id) { $_POST['email'] = ""; if ($selected_id != -1) { - if ($Mode == 'Edit') { - + if ($Mode == 'Edit' || !isset($_POST['br_name'])) { //editing an existing branch $myrow = get_cust_branch($_POST['customer_id'], $_POST['branch_code']); set_focus('br_name'); -- 2.30.2