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
lolo888
ISPConfig 3
Commits
43ce66dc
Commit
43ce66dc
authored
May 28, 2008
by
tbrehm
Browse files
Fixed a bug in graphical true / false list icon implementation.
parent
94890d75
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/lib/classes/listform_actions.inc.php
View file @
43ce66dc
...
...
@@ -96,9 +96,9 @@ class listform_actions {
foreach
(
$app
->
listform
->
listDef
[
'item'
]
as
$field
)
{
$key
=
$field
[
'field'
];
if
(
isset
(
$field
[
'formtype'
])
&&
$field
[
'formtype'
]
==
'SELECT'
)
{
if
(
$rec
[
$key
]
==
'y'
or
$rec
[
$key
]
==
'n'
)
{
if
(
strtolower
(
$rec
[
$key
]
)
==
'y'
or
strtolower
(
$rec
[
$key
]
)
==
'n'
)
{
// Set a additional image variable for bolean fields
$rec
[
'_'
.
$key
.
'_'
]
=
(
$rec
[
$key
]
==
'y'
)
?
'list_icon_true.png'
:
'list_icon_false.png'
;
$rec
[
'_'
.
$key
.
'_'
]
=
(
strtolower
(
$rec
[
$key
]
)
==
'y'
)
?
'list_icon_true.png'
:
'list_icon_false.png'
;
}
//* substitute value for select field
$rec
[
$key
]
=
@
$field
[
'value'
][
$rec
[
$key
]];
...
...
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