mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
FIX Docs for DataList::filter()
The docs incorrectly stated that DataList::filter() needed escaped input, but this isn't true as the ExactMatch filter (and others) escape the values for you. Anyone following that advice would have double escaped arguments
This commit is contained in:
parent
346990c877
commit
ff5f60718a
@ -310,7 +310,7 @@ class DataList extends ViewableData implements SS_List, SS_Filterable, SS_Sortab
|
||||
*
|
||||
* @todo extract the sql from $customQuery into a SQLGenerator class
|
||||
*
|
||||
* @param string|array Escaped SQL statement. If passed as array, all keys and values are assumed to be escaped.
|
||||
* @param string|array Key and Value pairs, the array values are automatically sanitised for the DB quesry
|
||||
* @return DataList
|
||||
*/
|
||||
public function filter() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user