summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-11-10 08:59:18 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-11-10 08:59:18 +0000
commit3cc0da863485a017c659a25faebc9f2a78f30b43 (patch)
tree4eab308f9e642d9bcef007fc6f760741732edde3
parent6466ee049a43303cd602a2495d7426105ec60423 (diff)
downloadbrdo-3cc0da863485a017c659a25faebc9f2a78f30b43.tar.gz
brdo-3cc0da863485a017c659a25faebc9f2a78f30b43.tar.bz2
#38278 by edkwh and Kjartan. Don't offer the impossible option of filtering on nodes with two types.
-rw-r--r--modules/node/node.module4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index f271c7c2b..9f5628076 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];
}