Moodle
  1. Moodle
  2. MDL-29870

"Found more than one record in fetch() !" on duplicating feedback activity

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.1.1
    • Fix Version/s: None
    • Component/s: Course, Feedback
    • Labels:
    • Environment:
      CentOS release 5.6 (Final)
    • Database:
      MySQL
    • Testing Instructions:
      Hide

      Given a course with a user1 enrolled, and teacher1 and teacher2 enrolled, and an Feedback activity defined...

      1. Log in as admin
      2. Visit the course page
      3. Turn editing on
      4. Click the "x2" duplicate icon next to the Feedback activity
      5. At the "Are you sure..." page, Click "Continue"
      6. At the "duplicated successfully" page, click "Edit the new copy"
      7. On the "Updating Feedback" page, make no changes, but scroll to the bottom of the page and click "Save and return to course"
      8. Turn editing off
      9. Log out, log back in as an enrolled student, and try to access the course.

      Show
      Given a course with a user1 enrolled, and teacher1 and teacher2 enrolled, and an Feedback activity defined... 1. Log in as admin 2. Visit the course page 3. Turn editing on 4. Click the "x2" duplicate icon next to the Feedback activity 5. At the "Are you sure..." page, Click "Continue" 6. At the "duplicated successfully" page, click "Edit the new copy" 7. On the "Updating Feedback" page, make no changes, but scroll to the bottom of the page and click "Save and return to course" 8. Turn editing off 9. Log out, log back in as an enrolled student, and try to access the course.
    • Affected Branches:
      MOODLE_21_STABLE
    • Rank:
      19400

      Description

      On (stupidly) duplicating a Feedback activity, clicking continue, and then immediately clicking Save and return to course, I got the "Found more than one record in fetch() !" page. Now I can't access the course (http://my.internalhost.net/moodle/course/view.php?id=2) as the teacher or student logins that were enrolled in the course.

      I tried resetting the course, but the error recurs.

      Enrolling as previously unenrolled students works fine.

      Any help on restoring this course for formerly enrolled logins appreciated.

        Issue Links

          Activity

            People

            • Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: