Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-3213

Notice displayed during certificate restore

    XMLWordPrintable

    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:
      Hide

      I don't know if the correct fix is to add this field and correctly manage it in all the certificate module (would it have any interest ?) or to simply suppress this line 71 ?

      Show
      I don't know if the correct fix is to add this field and correctly manage it in all the certificate module (would it have any interest ?) or to simply suppress this line 71 ?
    • 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)

        Attachments

          Activity

            People

            Assignee:
            markn Mark Nelson
            Reporter:
            jmvedrine Jean-Michel Vedrine
            Participants:
            Component watchers:
            Mark Nelson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: