Fixed branch selection via url
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Mon, 27 Jul 2009 10:05:26 +0000 (10:05 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Mon, 27 Jul 2009 10:05:26 +0000 (10:05 +0000)
sales/manage/customer_branches.php

index 433b0127f40de6b64f22d92951a484306e737964..0fe2dbe2be97171c2b2aaa336805d2f258de95c0 100644 (file)
@@ -43,6 +43,7 @@ if (isset($_GET['SelectedBranch']))
        $br = get_branch($_GET['SelectedBranch']);
        $_POST['customer_id'] = $br['debtor_no'];
        $selected_id = $_POST['branch_code'] = $br['branch_code'];
+       $Mode = 'Edit';
 }
 //-----------------------------------------------------------------------------------------------
 
@@ -195,7 +196,7 @@ if ($num_branches)
        $th = array(_("Name"), _("Contact"), _("Sales Person"), _("Area"),
                _("Phone No"), _("Fax No"), _("E-mail"), _("Tax Group"), "", "");
        inactive_control_column($th);
-       if (count($_SESSION['Context'])) $th[] = '';
+       if (count($_REQUEST['popup'])) $th[] = '';
 
        table_header($th);