From: Janusz Dobrowolski Date: Fri, 26 Nov 2010 10:07:01 +0000 (+0000) Subject: Fixed tabs switching X-Git-Tag: v2.4.2~19^2~455 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=fd866d00932b852aab01fd99b9b1fb948eb4d6a9;p=fa-stable.git Fixed tabs switching --- 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');