Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilherme Filippo
ISPConfig 3
Commits
a4710889
Commit
a4710889
authored
Apr 11, 2010
by
tbrehm
Browse files
Select fields obey now the default value from the form settings.
parent
71c0c5bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/lib/classes/tform.inc.php
View file @
a4710889
...
...
@@ -483,8 +483,7 @@ class tform {
if
(
is_array
(
$field
[
'value'
]))
{
$out
=
''
;
foreach
(
$field
[
'value'
]
as
$k
=>
$v
)
{
//$selected = ($k == $val)?' SELECTED':'';
$selected
=
''
;
$selected
=
(
$k
==
$field
[
"default"
])
?
' SELECTED'
:
''
;
$out
.
=
"<option value='
$k
'
$selected
>
$v
</option>
\r\n
"
;
}
}
...
...
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