diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-04-21 18:10:53 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-04-21 18:10:53 +0000 |
commit | 7f8770793797e1150af0e488288c1a157b02dab5 (patch) | |
tree | e0be3e51a59d2be89585e68f19e273525ceb18d9 | |
parent | 9050e15621523ed306fda50d24f5fe79eaa3ddb0 (diff) | |
download | brdo-7f8770793797e1150af0e488288c1a157b02dab5.tar.gz brdo-7f8770793797e1150af0e488288c1a157b02dab5.tar.bz2 |
- Patch #127109 by moonray with help from Zen: fixed UI glitch in node filter settings.
-rw-r--r-- | modules/node/node.module | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index d86cfdfbd..766325645 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1422,15 +1422,15 @@ function node_filter_form() { $value = module_invoke('taxonomy', 'get_term', $value); $value = $value->name; } - else if ($type == 'type') { - // Remove the type option if it is already being filtered on. - unset($filters['type']); - } else { $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>'); $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) { |