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

Coding error while course backup when competencies are disabled.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.1.3
    • Fix Version/s: 3.1.4
    • Component/s: Backup, Competencies
    • Labels:
    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-57063-master

      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

              • Assignee:
                fred Frédéric Massart
                Reporter:
                rajeshtaneja Rajesh Taneja
                Peer reviewer:
                Mark Nelson
                Integrator:
                David Monllaó
                Tester:
                Rajesh Taneja
                Participants:
                Component watchers:
                Adrian Greeve, Mihail Geshoski, Peter Dias, Damyon Wiese, Jean-Philippe Gaudreau, Steve Massicotte, Serge Gauthier, Issam Taboubi, Adrian Greeve, Mihail Geshoski, Peter Dias
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/Jan/17