Skip to content

Commit

Permalink
Moodle plugin CI Fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
raja-lmsace committed Apr 13, 2024
1 parent b7828ca commit 8c4e3b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion automation/instances/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8c4e3b7

Please sign in to comment.