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

Database entries are always linked to wrong entry

    Details

    • Testing Instructions:
      Hide
      1. Add a few entries to a database module
      2. Make sure to include ##more## in your template so that you can see the more icon.
      3. Click on "view as list"
      4. Change the "Sort by" column and make sure that the first entry is different to the default. (clicking "Descending" should work)
      5. Click on any of the "more" icons

      [Test]
      It takes you to the correct page with the entry details.

      Show
      Add a few entries to a database module Make sure to include ##more## in your template so that you can see the more icon. Click on "view as list" Change the "Sort by" column and make sure that the first entry is different to the default. (clicking "Descending" should work) Click on any of the "more" icons [Test] It takes you to the correct page with the entry details.
    • Affected Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      wip-MDL-33603-master-v2

      Description

      Replication steps:-

      1. Add a few entries to a database module
      2. Make sure to include ##more## in your template so that you can see the more icon.
      3. Click on "view as list"
      4. Change the "Sort by" column and make sure that the first entry is different to the default. (clicking "Descending" should work)
      5. Click on any of the "more" icons

      Expected result:-
      It takes you to the correct page with the entry details

      Actual result:-
      It takes to a page with details of some random entry.

      Because of this issue all the databases on moodle.org are completely useless, such as Moodle Jobs, Moodle Buzz etc

      For example http://moodle.org/mod/data/view.php?d=50 , try accessing any package from that url.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    9/Jul/12