Skip to content

Commit 321f7cc

Browse files
committed
Fix client_id selection
1 parent 1531f70 commit 321f7cc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

interface/web/client/client_edit.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ function onShowEdit() {
9494

9595
chdir('../client');
9696

97-
$client_group_id = $_SESSION["s"]["user"]["default_group"];
98-
$tmp = $app->db->queryOneRecord("SELECT company_name, contact_firstname, contact_name, email FROM client WHERE sys_groupid = ?", $client_group_id);
97+
$tmp = $app->db->queryOneRecord("SELECT company_name, contact_firstname, contact_name, email FROM client WHERE sys_groupid = ?", $current_client_id);
9998
$app->tpl->setVar('company_name', $tmp['company_name']);
10099
$app->tpl->setVar('contact_name', $tmp['contact_name']);
101100
$app->tpl->setVar('email', $tmp['email']);

0 commit comments

Comments
 (0)