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

Refactor events and completion code for mod_forum

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.1
    • Fix Version/s: None
    • Component/s: Forum
    • Labels:
    • Affected Branches:
      MOODLE_31_STABLE

      Description

      Currently the code for forum completion and events is duplicated in several places. Example:

      mod/forum/classes/message/inbound/reply_handler.php:        $event = \mod_forum\event\post_created::create($params);
      mod/forum/externallib.php:            $event = \mod_forum\event\post_created::create($params);
      mod/forum/post.php:            $event = \mod_forum\event\post_created::create($params);
      

      It should all be done consitently in one place.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              cameron1729 cameron1729
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: