Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
9528c300
Commit
9528c300
authored
Jan 18, 2006
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#45281
by flevour/chx: fixed problem with categories not being set properly on editing.
parent
5f829187
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
includes/form.inc
includes/form.inc
+2
-2
No files found.
includes/form.inc
View file @
9528c300
...
...
@@ -477,7 +477,7 @@ function theme_select($element) {
if
(
is_array
(
$choice
))
{
$select
.
=
'<optgroup label="'
.
$key
.
'">'
;
foreach
(
$choice
as
$key
=>
$choice
)
{
if
(
$value_valid
&&
(
$element
[
'#value'
]
==
$key
||
(
$value_is_array
&&
i
n_array
(
$key
,
$element
[
'#value'
]))))
{
if
(
$value_valid
&&
(
$element
[
'#value'
]
==
$key
||
(
$value_is_array
&&
i
sset
(
$element
[
'#value'
]
[
$key
]
))))
{
$selected
=
' selected="selected"'
;
}
else
{
...
...
@@ -488,7 +488,7 @@ function theme_select($element) {
$select
.
=
'</optgroup>'
;
}
else
{
if
(
$value_valid
&&
(
$element
[
'#value'
]
==
$key
||
(
$value_is_array
&&
i
n_array
(
$key
,
$element
[
'#value'
]))))
{
if
(
$value_valid
&&
(
$element
[
'#value'
]
==
$key
||
(
$value_is_array
&&
i
sset
(
$element
[
'#value'
]
[
$key
]
))))
{
$selected
=
' selected="selected"'
;
}
else
{
...
...
Write
Preview
Markdown
is supported
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