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

Create event for template viewed

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: None
    • Component/s: Competencies
    • Labels:
    • Testing Instructions:
      Hide

      Create a template.
      Click on it name to access the Template competencies page.
      Go to Administration > Reports > Logs
      Check you have "Standard logs" in the field before button "Get these logs".
      Click on the button "Get these logs".
      You must see information indicating that the template was viewed.
      When you click on the Event name link you see the Template competencies page associated in an other window.

      Show
      Create a template. Click on it name to access the Template competencies page. Go to Administration > Reports > Logs Check you have "Standard logs" in the field before button "Get these logs". Click on the button "Get these logs". You must see information indicating that the template was viewed. When you click on the Event name link you see the Template competencies page associated in an other window.
    • Affected Branches:
      MOODLE_31_STABLE
    • Pull Master Branch:
      MDL-52712_master
    • Story Points:
      1
    • Sprint:
      CBE Sprint 4, CBE Sprint 5

      Description

      This issue will create 1 event:

      • \tool_lp\event\template_viewed

      This event needs to be triggered in the views that display the template. As Ajax, and WS, do not access the page directly a new WS function needs to be created to trigger the event remotely. See mod_book_view_book for example.

      I would say that the only view we have displaying the template so far is templatecompetencies.php.

      The event needs to be tested.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sergeg55 Serge Gauthier
                Reporter:
                fred Frédéric Massart
                Peer reviewer:
                Frédéric Massart
                Participants:
                Component watchers:
                Damyon Wiese, Jean-Philippe Gaudreau, Steve Massicotte, Serge Gauthier, Issam Taboubi, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: