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

Replace add_to_log with an event trigger - course category

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.7
    • Component/s: Course
    • Labels:
    • Story Points:
      20
    • Sprint:
      BACKEND Sprint 9

      Description

      Replace the add_to_log calls for the following area, with a call to the get_legacy_logdata function in the event class.

      category
      /lib/coursecatlib.php:381: add_to_log(SITEID, "category", 'add', "editcategory.php?id=$newcategory->id", $newcategory->id);
      /lib/coursecatlib.php:475: add_to_log(SITEID, "category", 'update', "editcategory.php?id=$this->id", $this->id);
      /lib/coursecatlib.php:1514: add_to_log(SITEID, "category", "move", "editcategory.php?id=$childcat->id", $childcat->id);
      /lib/coursecatlib.php:1672: add_to_log(SITEID, "category", "move", "editcategory.php?id=$this->id", $this->id);
      /lib/coursecatlib.php:1737: add_to_log(SITEID, "category", "hide", "editcategory.php?id=$this->id", $this->id);
      /lib/coursecatlib.php:1790: add_to_log(SITEID, "category", "show", "editcategory.php?id=$this->id", $this->id);
      /course/manage.php:187: add_to_log(SITEID, "category", "move", "editcategory.php?id=$movecategory->id", $movecategory->id);

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              markn Mark Nelson
              Reporter:
              abgreeve Adrian Greeve
              Peer reviewer:
              Andrew Davis
              Integrator:
              Dan Poltawski
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/May/14