fix: [internal] Fixed an incorrect parameter lookup for the from/to timefilter parser

pull/3551/head
iglocska 2018-08-06 10:49:11 +02:00
parent cca7ee1acc
commit 8bea0fd1dc
1 changed files with 2 additions and 2 deletions

View File

@ -1935,9 +1935,9 @@ class Event extends AppModel
public function set_filter_timestamp($params, $conditions, $filter)
{
if ($filter == 'from') {
$conditions['AND']['Event.date >='] = $from;
$conditions['AND']['Event.date >='] = $params['from'];
} else if ($filter == 'to') {
$conditions['AND']['Event.date <='] = $from;
$conditions['AND']['Event.date <='] = $params['to'];
} else {
$filters = array(
'timestamp' => array(