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

Some events have wrong/missing objecttable.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.7
    • Component/s: Events API
    • Labels:
    • Testing Instructions:
      Hide
      1. Go to the events list (Administration>Site administration>Reports>Events list)
      2. Check that the following:
        • Subscription created.
        • Subscription deleted.
      3. Have "forum_subscriptions" as the affected table
      1. Create a course with a forum (make sure it has optional subscription – this is default)
      2. Enrol yourself in the course
      3. Subscribe to the forum (Administration>Forum Administration>Subscribe to this forum)
      4. Unsubscribe from the forum
      Show
      Go to the events list (Administration>Site administration>Reports>Events list) Check that the following: Subscription created. Subscription deleted. Have "forum_subscriptions" as the affected table Create a course with a forum (make sure it has optional subscription – this is default) Enrol yourself in the course Subscribe to the forum (Administration>Forum Administration>Subscribe to this forum) Unsubscribe from the forum
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-45296-master-2

      Description

      1. The mod_assign\event\submission_locked and submission_unlocked events pass the assignment as the objectid, which I think is incorrect. It should either be the 'assign_submission' id, or the id of 'assign_user_flags' which is where the DB changes happen.
      2. The mod_forum\event\subscription_created and subscription_deleted events are missing the objecttable 'forum_subscriptions'.

        Attachments

          Activity

            People

            Assignee:
            johno John Okely
            Reporter:
            markn Mark Nelson
            Peer reviewer:
            Marina Glancy
            Integrator:
            Eloy Lafuente (stronk7)
            Tester:
            Damyon Wiese
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

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