Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jozef Sroka
ISPConfig 3
Commits
8de24d4a
Commit
8de24d4a
authored
Sep 14, 2016
by
Florian Schaal
Browse files
Fixes #4146
parent
3c8467b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/client/domain_edit.php
View file @
8de24d4a
...
...
@@ -85,10 +85,10 @@ class page_action extends tform_actions {
$clients
=
$app
->
db
->
queryAllRecords
(
$sql
);
$client_select
=
''
;
if
(
$_SESSION
[
"s"
][
"user"
][
"typ"
]
==
'admin'
)
$client_select
.
=
"<option value='0'></option>"
;
$tmp_data_record
=
$app
->
tform
->
getDataRecord
(
$this
->
id
);
if
(
$this
->
id
>
0
)
$tmp_data_record
=
$app
->
tform
->
getDataRecord
(
$this
->
id
);
else
$tmp_data_record
=
$this
->
dataRecord
;
if
(
is_array
(
$clients
))
{
foreach
(
$clients
as
$client
)
{
$selected
=
(
$client
[
"groupid"
]
==
$tmp_data_record
[
"sys_groupid"
])
?
'SELECTED'
:
''
;
$selected
=
(
$client
[
"groupid"
]
==
$tmp_data_record
[
"sys_groupid"
]
||
$client
[
"groupid"
]
==
$tmp_data_record
[
"client_group_id"
]
)
?
'SELECTED'
:
''
;
$client_select
.
=
"<option value='
$client[groupid]
'
$selected
>
$client[contactname]
</option>
\r\n
"
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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