Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
d350982b
Commit
d350982b
authored
Aug 13, 2014
by
Sergio
Browse files
display resellers with no limit_client on "client of reseller" field
parent
babacd5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/client/client_edit.php
View file @
d350982b
...
...
@@ -227,7 +227,7 @@ class page_action extends tform_actions {
if
(
$app
->
auth
->
is_admin
())
{
// Fill the client select field
$sql
=
"SELECT client.client_id, sys_group.groupid, sys_group.name, CONCAT(IF(client.company_name != '', CONCAT(client.company_name, ' :: '), ''), client.contact_name, ' (', client.username, IF(client.customer_no != '', CONCAT(', ', client.customer_no), ''), ')') as contactname FROM sys_group, client WHERE sys_group.client_id = client.client_id AND sys_group.client_id > 0 AND client.limit_client
>
0 ORDER BY client.company_name, client.contact_name, sys_group.name"
;
$sql
=
"SELECT client.client_id, sys_group.groupid, sys_group.name, CONCAT(IF(client.company_name != '', CONCAT(client.company_name, ' :: '), ''), client.contact_name, ' (', client.username, IF(client.customer_no != '', CONCAT(', ', client.customer_no), ''), ')') as contactname FROM sys_group, client WHERE sys_group.client_id = client.client_id AND sys_group.client_id > 0 AND client.limit_client
!=
0 ORDER BY client.company_name, client.contact_name, sys_group.name"
;
$clients
=
$app
->
db
->
queryAllRecords
(
$sql
);
$client_select
=
"<option value='0'>- "
.
$app
->
tform
->
lng
(
'none_txt'
)
.
" -</option>"
;
//$tmp_data_record = $app->tform->getDataRecord($this->id);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment