We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1531f70 commit 321f7ccCopy full SHA for 321f7cc
1 file changed
interface/web/client/client_edit.php
@@ -94,8 +94,7 @@ function onShowEdit() {
94
95
chdir('../client');
96
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);
+ $tmp = $app->db->queryOneRecord("SELECT company_name, contact_firstname, contact_name, email FROM client WHERE sys_groupid = ?", $current_client_id);
99
$app->tpl->setVar('company_name', $tmp['company_name']);
100
$app->tpl->setVar('contact_name', $tmp['contact_name']);
101
$app->tpl->setVar('email', $tmp['email']);
0 commit comments