Commit 7f877079 authored by Dries's avatar Dries
Browse files

- Patch #127109 by moonray with help from Zen: fixed UI glitch in node filter settings.

parent 9050e156
...@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment