From 3cc0da863485a017c659a25faebc9f2a78f30b43 Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Fri, 10 Nov 2006 08:59:18 +0000 Subject: [PATCH] #38278 by edkwh and Kjartan. Don't offer the impossible option of filtering on nodes with two types. --- modules/node/node.module | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/node/node.module b/modules/node/node.module index f271c7c2b1d..9f562807688 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1333,6 +1333,10 @@ 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]; }