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

Backup fails if the "selectactivities" index in the config data is missing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • 3.4.6
    • None
    • 2018111000
    • MOODLE_34_STABLE

      I'm not quire sure how to reproduce this. You just need to make sure the "selectactivities" index in the config data is not set in the block configuration in the course before performing a restore.

      Error messages during restore:

      PHP Notice: Undefined index: selectactivities in /moodle/blocks/completion_progress/backup/moodle2/restore_completion_ progress_block_task.class.php on line 45

      Notice: Undefined index: selectactivities in /moodle/blocks/completion_progress/backup/moodle2/restore_completion_progr ess_block_task.class.php on line 45
      PHP Warning: Invalid argument supplied for foreach() in /moodle/blocks/completion_progress/backup/moodle2/restore_comp letion_progress_block_task.class.php on line 45

      Warning: Invalid argument supplied for foreach() in /moodle/blocks/completion_progress/backup/moodle2/restore_completio n_progress_block_task.class.php on line 45

      This pull request solves the problem:
      https://github.com/deraadt/moodle-block_completion_progress/pull/37

            salvetore Michael de Raadt
            johnnypraxis Johnny Drud
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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