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

Invalid check of undefined object in ratings/index.php

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.5, 2.8.3
    • Fix Version/s: 2.7.8, 2.8.6
    • Component/s: Ratings
    • Labels:
    • Testing Instructions:
      Hide
      1. In a course create a glossary (enable ratings), create one entry
      2. As a teacher add a rating to the entry, as a different teacher or admin add an additional rating to the same entry
      3. Edit the course permissions for the teacher role, disable moodle/rating:viewall
      4. Then, as a teacher go to the Glossory entry and click on the rating to open the ratings popup with details.
      5. Confirm that:
        • You can see only your rating
      6. Enable the permission again and check that you can see all the ratings
      Show
      In a course create a glossary (enable ratings), create one entry As a teacher add a rating to the entry, as a different teacher or admin add an additional rating to the same entry Edit the course permissions for the teacher role, disable moodle/rating:viewall Then, as a teacher go to the Glossory entry and click on the rating to open the ratings popup with details. Confirm that: You can see only your rating Enable the permission again and check that you can see all the ratings
    • Affected Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-49351-master

      Description

      Found this issue when reviewing this subsystem for adding someexternal functions:

      ratings/index.php check an undefined object

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/May/15