Don't start filter if the command was execute

pull/2975/head
Isaac Connor 2020-06-17 13:36:28 -04:00
parent e68bf13a6b
commit f73cb3bebe
1 changed files with 2 additions and 2 deletions

View File

@ -85,8 +85,6 @@ if ( isset($_REQUEST['object']) and ( $_REQUEST['object'] == 'filter' ) ) {
// We update the request id so that the newly saved filter is auto-selected
$_REQUEST['Id'] = $filter->Id();
}
if ( $filter->Background() )
$filter->control('start');
if ( $action == 'execute' ) {
$filter->execute();
@ -94,6 +92,8 @@ if ( isset($_REQUEST['object']) and ( $_REQUEST['object'] == 'filter' ) ) {
$filter->delete();
$view = 'events';
} else if ( $filter->Background() ) {
$filter->control('start');
}
} else if ( $action == 'control' ) {