Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
integration
prechecker
Commits
bfb5d3ba
Commit
bfb5d3ba
authored
Dec 05, 2017
by
Damyon Wiese
Committed by
jun
Dec 06, 2017
Browse files
Merge branch 'MDL-37933_master' of
git://github.com/markn86/moodle
parents
d52e5dd3
5211efb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/completionlib.php
View file @
bfb5d3ba
...
...
@@ -356,19 +356,19 @@ class completion_info {
* @return array
*/
public
function
get_completions
(
$user_id
,
$criteriatype
=
null
)
{
$criteri
on
=
$this
->
get_criteria
(
$criteriatype
);
$criteri
a
=
$this
->
get_criteria
(
$criteriatype
);
$completions
=
array
();
foreach
(
$criteri
on
as
$criteri
a
)
{
foreach
(
$criteri
a
as
$criteri
on
)
{
$params
=
array
(
'course'
=>
$this
->
course_id
,
'userid'
=>
$user_id
,
'criteriaid'
=>
$criteri
a
->
id
'criteriaid'
=>
$criteri
on
->
id
);
$completion
=
new
completion_criteria_completion
(
$params
);
$completion
->
attach_criteria
(
$criteri
a
);
$completion
->
attach_criteria
(
$criteri
on
);
$completions
[]
=
$completion
;
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment