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
d3451415
Commit
d3451415
authored
5 years ago
by
Tobias Reischmann
Browse files
Options
Downloads
Patches
Plain Diff
Only show non-static workflows in delays view filter
parent
cf03a68d
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
classes/local/form/form_delays_filter.php
+4
-1
4 additions, 1 deletion
classes/local/form/form_delays_filter.php
with
4 additions
and
1 deletion
classes/local/form/form_delays_filter.php
+
4
−
1
View file @
d3451415
...
@@ -51,9 +51,12 @@ class form_delays_filter extends \moodleform {
...
@@ -51,9 +51,12 @@ class form_delays_filter extends \moodleform {
'global'
=>
get_string
(
'globally'
,
'tool_lifecycle'
)
'global'
=>
get_string
(
'globally'
,
'tool_lifecycle'
)
];
];
foreach
(
$activeworkflows
as
$activeworkflow
)
{
foreach
(
$activeworkflows
as
$activeworkflow
)
{
// Only show non-static workflows.
if
(
workflow_manager
::
is_disableable
(
$activeworkflow
->
id
))
{
$workflowoptions
[
$activeworkflow
->
id
]
=
get_string
(
'delays_for_workflow'
,
'tool_lifecycle'
,
$workflowoptions
[
$activeworkflow
->
id
]
=
get_string
(
'delays_for_workflow'
,
'tool_lifecycle'
,
$activeworkflow
->
displaytitle
);
$activeworkflow
->
displaytitle
);
}
}
}
$mform
->
addElement
(
'select'
,
'workflow'
,
get_string
(
'show_delays'
,
'tool_lifecycle'
),
$workflowoptions
);
$mform
->
addElement
(
'select'
,
'workflow'
,
get_string
(
'show_delays'
,
'tool_lifecycle'
),
$workflowoptions
);
// Use core_course_category for moodle 3.6 and higher.
// Use core_course_category for moodle 3.6 and higher.
...
...
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