From 7f8770793797e1150af0e488288c1a157b02dab5 Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Sat, 21 Apr 2007 18:10:53 +0000
Subject: [PATCH] - Patch #127109 by moonray with help from Zen: fixed UI
 glitch in node filter settings.

---
 modules/node/node.module | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/node/node.module b/modules/node/node.module
index d86cfdfbdda2..766325645ec8 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) {
-- 
GitLab