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

Event should use event->contextinstanceid and not event->context->instanceid

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.1
    • Fix Version/s: 2.7
    • Component/s: Events API
    • Labels:
    • Sprint:
      BACKEND Sprint 9

      Description

      Context used in event url and description are not using event::get_context() or event->contextinstanceid

      While event restore, context might not be found (deleted), in those cases event will give error for event::get_url()
      Please use properties of event rather then relying on get_context()

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rajeshtaneja Rajesh Taneja
              Reporter:
              rajeshtaneja Rajesh Taneja
              Peer reviewer:
              Petr Skoda
              Integrator:
              Marina Glancy
              Tester:
              Marina Glancy
              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:
              4 Start watching this issue

                Dates

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