Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
function views_break_phrase() {
// ...
// Keep an 'error' value if invalid strings were given.
if (!empty($str) && (empty($filter->value) || !is_array($filter->value))) {
$filter->value = array(-1);
return $filter;
}
// ...
}
Method views_plugin_argument_validate_node::validate_argument()
and
method views_handler_argument_term_node_tid_depth::query()
check the return value as fallow:
$tids = views_break_phrase($argument, $tids);
if ($tids->value == -1) {
return FALSE;
}
Comment | File | Size | Author |
---|---|---|---|
#1 | 1086506-wrong-usage-views_break_phase.patch | 1.23 KB | dawehner |
Comments
Comment #1
dawehnerHere is a fix for the places where this exists.
Comment #2
dawehnerThis makes sense, so committed to 6.x-3.x and 7.x-3.x