Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-1671

Force Booking function doesn't move bookings with DST timeshift applied

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.6
    • Fix Version/s: None
    • Component/s: Block: Mrbs
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      The force booking function (for people with mrbs:forcebook) doesn't find bookings created before a DST change if trying to forceably book a room after the DST change. This happens because the record stores the time offset by one hour, but the query that searches for clashing bookings doesn't offset the time.
      The attached patch amends the query to also search for offset bookings.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              davosmith Davo Smith
              Reporter:
              marxjohnson Mark Johnson
              Participants:
              Component watchers:
              Davo Smith
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: