Fixed tabs switching
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Fri, 26 Nov 2010 10:07:01 +0000 (10:07 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Fri, 26 Nov 2010 10:07:01 +0000 (10:07 +0000)
sales/manage/customer_branches.php

index 537a589130bb089a88e047e376bf16547357b87e..2d36736031313ad5cefecedc2869b62144c24cfe 100644 (file)
@@ -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');