Merge branch 'MDL-64283-36' of git://github.com/damyon/moodle into MOODLE_36_STABLE

This commit is contained in:
Jun Pataleta
2018-12-06 14:57:41 +08:00
+2 -2
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)) {