#38278 by edkwh and Kjartan. Don't offer the impossible option of filtering on nodes with two types.
parent
6466ee049a
commit
3cc0da8634
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue