Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-76938

Unable to restore from backup when course format uses comments

    XMLWordPrintable

Details

    Description

      I'm currently working on a course format (which is intended to be submitted to the Moodle plugins directory once complete).

      This course format makes use of the Moodle comments API.

      This works perfectly, until you try and restore from backup, at which point you get a fatal error:
      Exception - Call to undefined method restore_course_task::get_comment_mapping_itemname()

      This function is defined in restore_activity_task, so it is not available in restore_course_task.

      It looks like moving the function up one level into restore_task solves the problem

      Attachments

        1. 400.gif
          400.gif
          1.32 MB
        2. 401.gif
          401.gif
          1.26 MB
        3. backup_bad_comments.mbz
          5 kB
        4. master.gif
          master.gif
          1.07 MB

        Activity

          People

            davosmith Davo Smith
            davosmith Davo Smith
            Paul Holden Paul Holden
            Jun Pataleta Jun Pataleta
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 6 minutes
                3h 6m

                Clockify

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.