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

The mod_wiki\event\comments_viewed event contains undefined variable.

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Create a wiki module.
      2. Click on the "Comments" tab.
      3. View <yoursite>/report/log/index.php and click 'Get these logs'.
      4. Check that the 'Comments viewed' description makes sense and that there are no empty quotations.
      Show
      Create a wiki module. Click on the "Comments" tab. View <yoursite>/report/log/index.php and click 'Get these logs'. Check that the 'Comments viewed' description makes sense and that there are no empty quotations.
    • Affected Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE
    • Pull Master Branch:
      MDL-45789_master

      Description

      1. Create a wiki module.
      2. Click on the "Comments" tab.
      3. View <yoursite>/report/log/index.php and click 'Get these logs'.
      4. Notice that the 'Comments viewed' event has an empty quotation.

      eg. "The user with id '2' viewed a comment with id '5' on the page with id '' for the wiki with the course module id '76'."

      There should be no itemid in this event, as we are not viewing an individual comment but a page that may have multiple comments.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                markn Mark Nelson
                Reporter:
                markn Mark Nelson
                Peer reviewer:
                Adrian Greeve
                Integrator:
                Eloy Lafuente (stronk7)
                Tester:
                Ankit Agarwal
                Participants:
                Component watchers:
                Jake Dallimore, Jun Pataleta, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/Jul/14