Moodle
  1. Moodle
  2. MDL-12126

course idnumber is empty after restore

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Not a bug
    • Affects Version/s: 1.8.3
    • Fix Version/s: None
    • Component/s: Backup
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE
    • Rank:
      7984

      Description

      Create a course with a name, a short name and a course ID Number.
      Make a backup.
      Go somewhere else and restore the just backupped course.
      The restored course is without course ID Number.

      This is totally not relevant... but if you use LDAP enrolments that uses course ID Number, you can spend several hours trying to fix your correct LDAP settings.
      As soon as I got this info, I also updated the moodle.docs page: http://docs.moodle.org/en/LDAP_enrolment
      If you find I am wrong, please update me because I also need to revert the moodle.docs page.

        Issue Links

          Activity

          Hide
          Daniele Cordella added a comment -

          I do attach the backup I used to prove what I wrote. I think it will be useless but... in any case, it is here.

          Show
          Daniele Cordella added a comment - I do attach the backup I used to prove what I wrote. I think it will be useless but... in any case, it is here.
          Hide
          Petr Kalis added a comment -

          Hi Daniele
          I am just questioning myself, if this is a bug or a feature. I tried it as you adviced, when you restore backupped course to new course, it lefts the id number out. But when you restore this backupped course over your course, the id stays. I suppose ID has to be unique, hasn't it? So even if the restore process will address this issue and expand ID with 'copy X' as it does with course name or expand with '_X' the course shortname (this has to be unique too), you will still have to correct it manually, will you not?
          Just random thoughts when i was thinking about this issue.
          PK

          Show
          Petr Kalis added a comment - Hi Daniele I am just questioning myself, if this is a bug or a feature. I tried it as you adviced, when you restore backupped course to new course, it lefts the id number out. But when you restore this backupped course over your course, the id stays. I suppose ID has to be unique, hasn't it? So even if the restore process will address this issue and expand ID with 'copy X' as it does with course name or expand with '_X' the course shortname (this has to be unique too), you will still have to correct it manually, will you not? Just random thoughts when i was thinking about this issue. PK
          Hide
          Daniele Cordella added a comment -

          Correct. I didn't think to this aspect. Thank you.
          My suggestion is:
          During restore process:
          if (this course ID is not used)

          {write the ID}

          else

          {write ID_X and show an alert}
          Show
          Daniele Cordella added a comment - Correct. I didn't think to this aspect. Thank you. My suggestion is: During restore process: if (this course ID is not used) {write the ID} else {write ID_X and show an alert}
          Hide
          Petr Škoda added a comment -

          see http://moodle.org/mod/forum/discuss.php?d=16297
          the idnumber is left blank after restore intentionally

          Show
          Petr Škoda added a comment - see http://moodle.org/mod/forum/discuss.php?d=16297 the idnumber is left blank after restore intentionally

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: