mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX filterAny error message now refers to correct method name
This commit is contained in:
parent
2a3768266e
commit
747bd4cac0
@ -434,7 +434,7 @@ class DataList extends ViewableData implements SS_List, SS_Filterable, SS_Sortab
|
|||||||
} elseif($numberFuncArgs == 2) {
|
} elseif($numberFuncArgs == 2) {
|
||||||
$whereArguments[func_get_arg(0)] = func_get_arg(1);
|
$whereArguments[func_get_arg(0)] = func_get_arg(1);
|
||||||
} else {
|
} else {
|
||||||
throw new InvalidArgumentException('Incorrect number of arguments passed to exclude()');
|
throw new InvalidArgumentException('Incorrect number of arguments passed to filterAny()');
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->alterDataQuery(function($query, $list) use ($whereArguments) {
|
return $this->alterDataQuery(function($query, $list) use ($whereArguments) {
|
||||||
|
Loading…
Reference in New Issue
Block a user