mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Bad parameter forwarding from SS_ListDecorator (sort,filter,exclude) to i.e. DataList.
This commit is contained in:
parent
3a9ea42488
commit
09c1f8f576
@ -120,7 +120,7 @@ abstract class SS_ListDecorator extends ViewableData implements SS_List {
|
|||||||
*/
|
*/
|
||||||
public function sort() {
|
public function sort() {
|
||||||
$args = func_get_args();
|
$args = func_get_args();
|
||||||
return $this->list->sort($args);
|
return call_user_func_array(array($this->list, 'sort'), $args);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -133,7 +133,7 @@ abstract class SS_ListDecorator extends ViewableData implements SS_List {
|
|||||||
*/
|
*/
|
||||||
public function filter(){
|
public function filter(){
|
||||||
$args = func_get_args();
|
$args = func_get_args();
|
||||||
return $this->list->filter(func_get_args($args));
|
return call_user_func_array(array($this->list, 'filter'), $args);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -146,8 +146,7 @@ abstract class SS_ListDecorator extends ViewableData implements SS_List {
|
|||||||
*/
|
*/
|
||||||
public function exclude(){
|
public function exclude(){
|
||||||
$args = func_get_args();
|
$args = func_get_args();
|
||||||
return $this->list->exclude(func_get_args($args));
|
return call_user_func_array(array($this->list, 'exclude'), $args);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function debug() {
|
public function debug() {
|
||||||
|
Loading…
Reference in New Issue
Block a user