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

Errors occurs when restoring assignment with custom scale

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.6
    • FRONTEND
    • Assignment
    • MOODLE_26_STABLE

    Description

      An Assignment activity which uses a custom scale, when backed up and restored to a new course, it generates the following error message:

      Did you remember to make the first column something unique in your call to get_records? Duplicate value 'server.xyz+110517111136+s8n0Dl server.xyz+110517111136+ysBliJ' found in column 'concat(stamp, ' ', version)'.
       
          line 1005 of /lib/dml/mysqli_native_moodle_database.php: call to debugging()
          line 1334 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
          line 620 of /backup/util/dbops/restore_dbops.class.php: call to moodle_database->get_records_sql_menu()
          line 484 of /backup/util/dbops/restore_dbops.class.php: call to restore_dbops::prechek_precheck_qbanks_by_level()
          line 135 of /backup/util/helper/restore_prechecks_helper.class.php: call to restore_dbops::precheck_categories_and_questions()
          line 366 of /backup/controller/restore_controller.class.php: call to restore_prechecks_helper::execute_prechecks()
          line 638 of /backup/util/ui/restore_ui_stage.class.php: call to restore_controller->execute_precheck()
          line 284 of /backup/util/ui/restore_ui.class.php: call to restore_ui_stage_process->process()
          line 60 of /backup/restore.php: call to restore_ui->requires_substage()
      

      Steps to Reproduce:
      1. Create a custom scale in a course;
      2. Create an Assignment activity in the course which uses that custom scale.
      3. Backup that course and restore it to a new course.

      The above error occurs.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rwijaya Rossiani Wijaya
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: