Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.0, 2.0.4, 2.0.5, 2.1, 2.1.1, 2.1.2
-
Fix Version/s: None
-
Component/s: Module: Certificate
-
Labels:None
-
Database:Any
-
Workaround:
-
Affected Branches:MOODLE_20_STABLE, MOODLE_21_STABLE
Description
Hello Mark,
I am trying to fix various issues about certificate backup/restore so I am reporting everything that I find even minor issues just in case you didn't already found these.
during restore of a certificate a notice is displayed :
Notice: Undefined property: stdClass::$timemodified in C:\wamp\www\moodle21_13_10_11\mod\certificate\backup\moodle2\restore_certificate_stepslib.php on line 71
This is because of line
$data->timemodified = $this->apply_date_offset($data->timemodified);
line 71 of mod/certificate/backup/moodle2/restore_certificate_stepslib.php because there is no such timemodified field in the certificate_issues table (not to be confused : there is a timemodified field in the certificate table and everything is fine with this field)