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

Coding error while course backup when competencies are disabled.

    XMLWordPrintable

Details

    • MOODLE_31_STABLE
    • MOODLE_31_STABLE
    • MDL-57063-master
    • Hide
      1. Navigate to Site administration ► Competencies ► Competency settings.
      2. Uncheck Enable competencies.
      3. Click Save changes.
      4. Navigate back to the course.
      5. Backup the course
      6. Confirm that
        • the competency option does not appear during the backup
        • there isn't any error during the process (note MDL-57064)
      7. Also backup the course using the CLI backup tool

        php admin/cli/backup.php --courseid=ID
        

        • you should not see any error or notice
      8. Repeat the lot with competencies enabled, only this time the competency option will appear during the web backup
      Show
      Navigate to Site administration ► Competencies ► Competency settings. Uncheck Enable competencies. Click Save changes. Navigate back to the course. Backup the course Confirm that the competency option does not appear during the backup there isn't any error during the process (note MDL-57064 ) Also backup the course using the CLI backup tool php admin/cli/backup.php --courseid=ID you should not see any error or notice Repeat the lot with competencies enabled , only this time the competency option will appear during the web backup

    Description

      Steps to reproduce:

      1. Navigate to Site administration ► Competencies ► Competency settings.
      2. Uncheck Enable competencies.
      3. Click Save changes.
      4. Navigate back to the course.
      5. Try backup and you will observe

        Debug info: 
        Error code: setting_locked_by_config
        $a contents:
        ×Stack trace:
        line 170 of /backup/util/settings/base_setting.class.php: base_setting_exception thrown
        line 632 of /backup/util/dbops/backup_controller_dbops.class.php: call to base_setting->set_value()
        line 569 of /backup/util/dbops/backup_controller_dbops.class.php: call to backup_controller_dbops::apply_admin_config_defaults()
        line 372 of /backup/controller/backup_controller.class.php: call to backup_controller_dbops::apply_config_defaults()
        line 133 of /backup/controller/backup_controller.class.php: call to backup_controller->apply_defaults()
        line 88 of /backup/backup.php: call to backup_controller->__construct()
        

      Attachments

        Issue Links

          Activity

            People

              fred Frédéric Massart
              rajeshtaneja Rajesh Taneja
              Mark Nelson Mark Nelson
              David Monllaó David Monllaó
              Rajesh Taneja Rajesh Taneja
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

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