Update modules/monitoring/application/controllers/ListController.php

Use form value for from, as suggested

Co-Authored-By: Jennifer Mourek <jennifer.mourek@netways.de>
This commit is contained in:
mdetrano 2019-05-22 13:28:24 -06:00 committed by GitHub
parent e7d117e1b6
commit 9470268f50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -362,7 +362,7 @@ class ListController extends Controller
$orientationBox->applyRequest($this->getRequest());
*/
$objectType = $this->getParam('objecttype', 'services');
$from = date('c', $this->getParam('from', strtotime('midnight 3 months ago')));
$from = $form->getValue('from');
$query = $this->backend->select()->from(
'eventgrid' . $objectType,
array('day', $form->getValue('state'))