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

New event button listener does not respect current course

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Deferred
    • Affects Version/s: 3.4
    • Fix Version/s: None
    • Component/s: Calendar
    • Labels:

      Description

      If you change which course is selected, this isn't respected in the new event dialogue.

      This is because we:

      1. we register the new event button once, on initial page load; therefore
      2. we set the current course Id once, on initial page load

      We need to either:

      1. move the instantiation to be within the wrapper; or
      2. make the setCourseId call lazy.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dobedobedoh Andrew Nicols
                Reporter:
                dobedobedoh Andrew Nicols
                Participants:
                Component watchers:
                Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: