It would seem that you are passing an object, not a list... see...
http://api.silverstripe.org/3.1/source-class-DataList.html#543-560
maybe "remove" is more appropriate...
http://api.silverstripe.org/3.1/source-class-DataList.html#985-995
If not then consider converting teh list from a DataList to ArrayList as I think the result of a "get" isn't possible to manipulate as easily.
Posted to: Creating filters for a search | Show Thread | Post Reply