#38278 by edkwh and Kjartan. Don't offer the impossible option of filtering on nodes with two types.

5.x
Neil Drumm 2006-11-10 08:59:18 +00:00
parent 6466ee049a
commit 3cc0da8634
1 changed files with 4 additions and 0 deletions

View File

@ -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];
}