From: Janusz Dobrowolski Date: Mon, 27 Jul 2009 10:05:26 +0000 (+0000) Subject: Fixed branch selection via url X-Git-Tag: v2.4.2~19^2~1324 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=094f2276c201414c84c7cddfac387247c4877966;p=fa-stable.git Fixed branch selection via url --- diff --git a/sales/manage/customer_branches.php b/sales/manage/customer_branches.php index 433b0127..0fe2dbe2 100644 --- a/sales/manage/customer_branches.php +++ b/sales/manage/customer_branches.php @@ -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);