File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,9 @@ function getClientName($dataRecord) {
6060 // Get the group-id from the data itself
6161 if (isset ($ dataRecord ['client_group_id ' ])) {
6262 $ client_group_id = $ dataRecord ['client_group_id ' ];
63+ } elseif (isset ($ dataRecord ['parent_domain_id ' ])) {
64+ $ tmp = $ app ->db ->queryOneRecord ("SELECT sys_groupid FROM web_domain WHERE domain_id = " . $ dataRecord ['parent_domain_id ' ]);
65+ $ client_group_id = $ tmp ['sys_groupid ' ];
6366 } else {
6467 $ client_group_id = $ dataRecord ['sys_groupid ' ];
6568 }
@@ -82,7 +85,10 @@ function getClientID($dataRecord) {
8285 // Get the group-id from the data itself
8386 if (isset ($ dataRecord ['client_group_id ' ])) {
8487 $ client_group_id = $ dataRecord ['client_group_id ' ];
85- } else {
88+ } elseif (isset ($ dataRecord ['parent_domain_id ' ])) {
89+ $ tmp = $ app ->db ->queryOneRecord ("SELECT sys_groupid FROM web_domain WHERE domain_id = " . $ dataRecord ['parent_domain_id ' ]);
90+ $ client_group_id = $ tmp ['sys_groupid ' ];
91+ } else {
8692 $ client_group_id = $ dataRecord ['sys_groupid ' ];
8793 }
8894 }
You can’t perform that action at this time.
0 commit comments