Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-tool_lifecycle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-tool_lifecycle
Commits
beae8d23
Commit
beae8d23
authored
7 years ago
by
Tobias Reischmann
Browse files
Options
Downloads
Patches
Plain Diff
Changed trigger action for workflow
parent
6d8ac4c8
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
classes/manager/trigger_manager.php
+1
-1
1 addition, 1 deletion
classes/manager/trigger_manager.php
classes/table/trigger_table.php
+1
-1
1 addition, 1 deletion
classes/table/trigger_table.php
lib.php
+1
-1
1 addition, 1 deletion
lib.php
with
3 additions
and
3 deletions
classes/manager/trigger_manager.php
+
1
−
1
View file @
beae8d23
...
@@ -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
}
}
...
...
This diff is collapsed.
Click to expand it.
classes/table/trigger_table.php
+
1
−
1
View file @
beae8d23
...
@@ -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
);
}
}
...
...
This diff is collapsed.
Click to expand it.
lib.php
+
1
−
1
View file @
beae8d23
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment