Skip to content
Snippets Groups Projects
Commit beae8d23 authored by Tobias Reischmann's avatar Tobias Reischmann
Browse files

Changed trigger action for workflow

parent 6d8ac4c8
Branches
No related tags found
No related merge requests found
...@@ -248,7 +248,7 @@ class trigger_manager extends subplugin_manager { ...@@ -248,7 +248,7 @@ class trigger_manager extends subplugin_manager {
if ($action === ACTION_DOWN_TRIGGER) { if ($action === ACTION_DOWN_TRIGGER) {
self::change_sortindex($subplugin, false); self::change_sortindex($subplugin, false);
} }
if ($action === ACTION_FOLLOWEDBY_TRIGGER) { if ($action === ACTION_WORKFLOW_TRIGGER) {
self::change_workflow($subplugin, optional_param('workflow', null, PARAM_INT)); self::change_workflow($subplugin, optional_param('workflow', null, PARAM_INT));
//TODO: Adjust the param to 'workflow' in the GUI //TODO: Adjust the param to 'workflow' in the GUI
} }
......
...@@ -151,7 +151,7 @@ class trigger_table extends \table_sql { ...@@ -151,7 +151,7 @@ class trigger_table extends \table_sql {
} }
return $OUTPUT->single_select(new \moodle_url($PAGE->url, return $OUTPUT->single_select(new \moodle_url($PAGE->url,
array('action' => ACTION_FOLLOWEDBY_TRIGGER, 'subplugin' => $row->id, 'sesskey' => sesskey())), array('action' => ACTION_WORKFLOW_TRIGGER, 'subplugin' => $row->id, 'sesskey' => sesskey())),
'followedby', $steps, $selected); 'followedby', $steps, $selected);
} }
......
...@@ -26,7 +26,7 @@ define('ACTION_ENABLE_TRIGGER', 'enable'); ...@@ -26,7 +26,7 @@ define('ACTION_ENABLE_TRIGGER', 'enable');
define('ACTION_DISABLE_TRIGGER', 'disable'); define('ACTION_DISABLE_TRIGGER', 'disable');
define('ACTION_UP_TRIGGER', 'up'); define('ACTION_UP_TRIGGER', 'up');
define('ACTION_DOWN_TRIGGER', 'down'); define('ACTION_DOWN_TRIGGER', 'down');
define('ACTION_FOLLOWEDBY_TRIGGER', 'followedby_trigger'); define('ACTION_WORKFLOW_TRIGGER', 'workflow_trigger');
define('ACTION_FOLLOWEDBY_STEP', 'followedby_step'); define('ACTION_FOLLOWEDBY_STEP', 'followedby_step');
define('ACTION_STEP_INSTANCE_FORM', 'step_instance_form'); define('ACTION_STEP_INSTANCE_FORM', 'step_instance_form');
define('ACTION_STEP_INSTANCE_DELETE', 'step_instance_delete'); define('ACTION_STEP_INSTANCE_DELETE', 'step_instance_delete');
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment