mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #3628 from JeremyRoundill/3.1
This commit is contained in:
commit
f2d3026e93
@ -215,6 +215,13 @@ abstract class ModelAdmin extends LeftAndMain {
|
||||
$params = ArrayLib::array_map_recursive('trim', $params);
|
||||
}
|
||||
|
||||
// Parse all DateFields to handle user input non ISO 8601 dates
|
||||
foreach($context->getFields() as $field) {
|
||||
if($field instanceof DatetimeField) {
|
||||
$params[$field->getName()] = date('Y-m-d', strtotime($params[$field->getName()]));
|
||||
}
|
||||
}
|
||||
|
||||
$list = $context->getResults($params);
|
||||
|
||||
$this->extend('updateList', $list);
|
||||
|
Loading…
Reference in New Issue
Block a user