Skip to content
Snippets Groups Projects
Commit 65139a84 authored by Justus Dieckmann's avatar Justus Dieckmann
Browse files

Update savepoint, default values for new workflow properties

parent 7d6643c0
Branches
Tags
No related merge requests found
......@@ -115,17 +115,17 @@ class workflow {
$displaytitle = $record->displaytitle;
}
$rollbackdelay = null;
$rollbackdelay = 0;
if (object_property_exists($record, 'rollbackdelay')) {
$rollbackdelay = $record->rollbackdelay;
}
$finishdelay = null;
$finishdelay = 0;
if (object_property_exists($record, 'finishdelay')) {
$finishdelay = $record->finishdelay;
}
$delayforallworkflows = null;
$delayforallworkflows = false;
if (object_property_exists($record, 'delayforallworkflows')) {
$delayforallworkflows = $record->delayforallworkflows;
}
......
......@@ -327,7 +327,7 @@ function xmldb_tool_lifecycle_upgrade($oldversion) {
upgrade_plugin_savepoint(true, 2019053100, 'tool', 'lifecycle');
}
if ($oldversion < 2019062500) {
if ($oldversion < 2019062600) {
$duration = get_config(null, 'lifecycle_duration');
......@@ -380,7 +380,7 @@ function xmldb_tool_lifecycle_upgrade($oldversion) {
}
// Lifecycle savepoint reached.
upgrade_plugin_savepoint(true, 2019062500, 'tool', 'lifecycle');
upgrade_plugin_savepoint(true, 2019062600, 'tool', 'lifecycle');
}
return true;
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
defined('MOODLE_INTERNAL') || die;
$plugin->maturity = MATURITY_ALPHA;
$plugin->version = 2019062500;
$plugin->version = 2019062600;
$plugin->component = 'tool_lifecycle';
$plugin->requires = 2017111300; // Require Moodle 3.4 (or above).
$plugin->release = 'v3.6-r1';
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment