Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
7f877079
Commit
7f877079
authored
Apr 21, 2007
by
Dries
Browse files
- Patch
#127109
by moonray with help from Zen: fixed UI glitch in node filter settings.
parent
9050e156
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/node/node.module
View file @
7f877079
...
@@ -1422,15 +1422,15 @@ function node_filter_form() {
...
@@ -1422,15 +1422,15 @@ function node_filter_form() {
$value
=
module_invoke
(
'taxonomy'
,
'get_term'
,
$value
);
$value
=
module_invoke
(
'taxonomy'
,
'get_term'
,
$value
);
$value
=
$value
->
name
;
$value
=
$value
->
name
;
}
}
else
if
(
$type
==
'type'
)
{
// Remove the type option if it is already being filtered on.
unset
(
$filters
[
'type'
]);
}
else
{
else
{
$value
=
$filters
[
$type
][
'options'
][
$value
];
$value
=
$filters
[
$type
][
'options'
][
$value
];
}
}
$string
=
(
$i
++
?
'<em>and</em> where <strong>%a</strong> is <strong>%b</strong>'
:
'<strong>%a</strong> is <strong>%b</strong>'
);
$string
=
(
$i
++
?
'<em>and</em> where <strong>%a</strong> is <strong>%b</strong>'
:
'<strong>%a</strong> is <strong>%b</strong>'
);
$form
[
'filters'
][
'current'
][]
=
array
(
'#value'
=>
t
(
$string
,
array
(
'%a'
=>
$filters
[
$type
][
'title'
]
,
'%b'
=>
$value
)));
$form
[
'filters'
][
'current'
][]
=
array
(
'#value'
=>
t
(
$string
,
array
(
'%a'
=>
$filters
[
$type
][
'title'
]
,
'%b'
=>
$value
)));
if
(
$type
==
'type'
)
{
// Remove the type option if it is already being filtered on.
unset
(
$filters
[
'type'
]);
}
}
}
foreach
(
$filters
as
$key
=>
$filter
)
{
foreach
(
$filters
as
$key
=>
$filter
)
{
...
...
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