diff --git a/automation/instances/edit.php b/automation/instances/edit.php index e5e1dd9..e8fe498 100644 --- a/automation/instances/edit.php +++ b/automation/instances/edit.php @@ -135,7 +135,8 @@ // Convert the trigger conditions to separate element. $conditions = $record->triggerconditions; foreach ($conditions as $condition) { - $record->{'condition['.$condition.'][status]'} = ($condition == 'events') ? condition_base::FUTURE : condition_base::ALL; + $record->{'condition['.$condition.'][status]'} = ($condition == 'events') ? condition_base::FUTURE + : condition_base::ALL; } // Set the template data to the templates edit form. $templatesform->set_data($record);