Merge branch 'MDL-64283-master' of git://github.com/damyon/moodle

This commit is contained in:
Jun Pataleta 2018-12-06 14:58:01 +08:00
commit 5fd1f89004

View File

@ -95,8 +95,8 @@ class core_competency_generator extends component_generator_base {
* @return competency
*/
public function create_competency($record = null) {
$this->frameworkcount++;
$i = $this->frameworkcount;
$this->competencycount++;
$i = $this->competencycount;
$record = (object) $record;
if (!isset($record->competencyframeworkid)) {