Removed improper use of self
This commit is contained in:
parent
873ffdf932
commit
df6385fe94
2 changed files with 2 additions and 2 deletions
|
@ -220,7 +220,7 @@ class element extends \mod_customcert\element {
|
||||||
$dateinfo = json_decode($this->get_data());
|
$dateinfo = json_decode($this->get_data());
|
||||||
if ($newitem = \restore_dbops::get_backup_ids_record($restore->get_restoreid(), 'course_module', $dateinfo->dateitem)) {
|
if ($newitem = \restore_dbops::get_backup_ids_record($restore->get_restoreid(), 'course_module', $dateinfo->dateitem)) {
|
||||||
$dateinfo->dateitem = $newitem->newitemid;
|
$dateinfo->dateitem = $newitem->newitemid;
|
||||||
$DB->set_field('customcert_elements', 'data', self::save_unique_data($dateinfo), array('id' => $this->get_id()));
|
$DB->set_field('customcert_elements', 'data', $this->save_unique_data($dateinfo), array('id' => $this->get_id()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -181,7 +181,7 @@ class element extends \mod_customcert\element {
|
||||||
$gradeinfo = json_decode($this->get_data());
|
$gradeinfo = json_decode($this->get_data());
|
||||||
if ($newitem = \restore_dbops::get_backup_ids_record($restore->get_restoreid(), 'course_module', $gradeinfo->gradeitem)) {
|
if ($newitem = \restore_dbops::get_backup_ids_record($restore->get_restoreid(), 'course_module', $gradeinfo->gradeitem)) {
|
||||||
$gradeinfo->gradeitem = $newitem->newitemid;
|
$gradeinfo->gradeitem = $newitem->newitemid;
|
||||||
$DB->set_field('customcert_elements', 'data', self::save_unique_data($gradeinfo), array('id' => $this->get_id()));
|
$DB->set_field('customcert_elements', 'data', $this->save_unique_data($gradeinfo), array('id' => $this->get_id()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue