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
0273bdd9
Unverified
Commit
0273bdd9
authored
5 years ago
by
Tobias Reischmann
Browse files
Options
Downloads
Patches
Plain Diff
Fix action handling of workflowsettings
parent
a9c868e4
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
adminlib.php
+8
-4
8 additions, 4 deletions
adminlib.php
workflowsettings.php
+2
-6
2 additions, 6 deletions
workflowsettings.php
with
10 additions
and
10 deletions
adminlib.php
+
8
−
4
View file @
0273bdd9
...
@@ -462,14 +462,18 @@ class workflow_settings {
...
@@ -462,14 +462,18 @@ class workflow_settings {
/**
/**
* This is the entry point for this controller class.
* This is the entry point for this controller class.
* @param $action string action string to be executed.
* @param $subpluginid int id of the subplugin associated.
* @param $workflowid int id of the workflow associated.
* @throws \coding_exception
*/
*/
public
function
execute
(
$action
,
$subplugin
)
{
public
function
execute
(
$action
,
$subplugin
id
,
$workflowid
)
{
$this
->
check_permissions
();
$this
->
check_permissions
();
// Handle other actions.
// Handle other actions.
step_manager
::
handle_action
(
$action
,
$subplugin
);
step_manager
::
handle_action
(
$action
,
$subplugin
id
);
trigger_manager
::
handle_action
(
$action
,
$subplugin
);
trigger_manager
::
handle_action
(
$action
,
$subplugin
id
);
workflow_manager
::
handle_action
(
$action
,
$
subplugin
);
workflow_manager
::
handle_action
(
$action
,
$
workflowid
);
if
(
$action
===
action
::
TRIGGER_INSTANCE_FORM
)
{
if
(
$action
===
action
::
TRIGGER_INSTANCE_FORM
)
{
if
(
$this
->
handle_trigger_instance_form
())
{
if
(
$this
->
handle_trigger_instance_form
())
{
...
...
This diff is collapsed.
Click to expand it.
workflowsettings.php
+
2
−
6
View file @
0273bdd9
...
@@ -41,9 +41,5 @@ if (!$workflow) {
...
@@ -41,9 +41,5 @@ if (!$workflow) {
$workflowsettings
=
new
tool_lifecycle\workflow_settings
(
$workflowid
);
$workflowsettings
=
new
tool_lifecycle\workflow_settings
(
$workflowid
);
// Execute the controller.
// Execute the controller.
// @TODO what's the purpose of subplugin? why not workflowid?
$subpluginid
=
optional_param
(
'subplugin'
,
null
,
PARAM_INT
);
$subplugin
=
optional_param
(
'subplugin'
,
null
,
PARAM_INT
);
$workflowsettings
->
execute
(
optional_param
(
'action'
,
null
,
PARAM_TEXT
),
$subpluginid
,
$workflowid
);
if
(
$subplugin
==
null
&&
$workflowid
)
{
\ No newline at end of file
$subplugin
=
$workflowid
;
}
$workflowsettings
->
execute
(
optional_param
(
'action'
,
null
,
PARAM_TEXT
),
$subplugin
);
\ 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