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

Allowed general fieldname subpluginname for trigger and steps

When a trigger or step form should be restored, we have to be able to
use the general field name subpluginname.
parent 79efaf89
No related branches found
No related tags found
No related merge requests found
...@@ -427,6 +427,8 @@ class workflow_settings { ...@@ -427,6 +427,8 @@ class workflow_settings {
return false; return false;
} }
$settings = settings_manager::get_settings($triggerid, SETTINGS_TYPE_TRIGGER); $settings = settings_manager::get_settings($triggerid, SETTINGS_TYPE_TRIGGER);
} else if ($name = optional_param('subpluginname', null, PARAM_ALPHA)) {
$subpluginname = $name;
} else if ($name = optional_param('triggername', null, PARAM_ALPHA)) { } else if ($name = optional_param('triggername', null, PARAM_ALPHA)) {
$subpluginname = $name; $subpluginname = $name;
} else { } else {
...@@ -480,6 +482,8 @@ class workflow_settings { ...@@ -480,6 +482,8 @@ class workflow_settings {
return false; return false;
} }
$stepsettings = settings_manager::get_settings($stepid, SETTINGS_TYPE_STEP); $stepsettings = settings_manager::get_settings($stepid, SETTINGS_TYPE_STEP);
} else if ($name = optional_param('subpluginname', null, PARAM_ALPHA)) {
$subpluginname = $name;
} else if ($name = optional_param('stepname', null, PARAM_ALPHA)) { } else if ($name = optional_param('stepname', null, PARAM_ALPHA)) {
$subpluginname = $name; $subpluginname = $name;
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment