File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,8 @@ function getClientName() {
173173 $ client_group_id = $ _SESSION ["s " ]["user " ]["default_group " ];
174174 } else {
175175 // Get the group-id from the data itself
176- $ client_group_id = $ this ->dataRecord ['client_group_id ' ];
176+ $ web = $ app ->db ->queryOneRecord ("SELECT sys_groupid FROM web_domain WHERE domain_id = " .intval ($ this ->dataRecord ['parent_domain_id ' ]));
177+ $ client_group_id = $ web ['sys_groupid ' ];
177178 }
178179 /* get the name of the client */
179180 $ tmp = $ app ->db ->queryOneRecord ("SELECT name FROM sys_group WHERE groupid = " . $ client_group_id );
Original file line number Diff line number Diff line change @@ -195,7 +195,8 @@ function getClientName() {
195195 $ client_group_id = $ _SESSION ["s " ]["user " ]["default_group " ];
196196 } else {
197197 // Get the group-id from the data itself
198- $ client_group_id = $ this ->dataRecord ['client_group_id ' ];
198+ $ web = $ app ->db ->queryOneRecord ("SELECT sys_groupid FROM web_domain WHERE domain_id = " .intval ($ this ->dataRecord ['parent_domain_id ' ]));
199+ $ client_group_id = $ web ['sys_groupid ' ];
199200 }
200201 /* get the name of the client */
201202 $ tmp = $ app ->db ->queryOneRecord ("SELECT name FROM sys_group WHERE groupid = " . $ client_group_id );
You can’t perform that action at this time.
0 commit comments