Story #92 Keep an event's end time when editing the event - cseseniordesign/reservations GitHub Wiki

End User Documentation

Dev Testing Instructions

  1. Make sure you are on the most recent version of the dev-keep-event-end-time branch.
  2. Go to the Events page on the website.
  3. Create a new event, either from a preset or from scratch.
  4. Set the event start and end time.
  5. Create the event.
  6. Click on the event to edit it.
  7. Verify that the Start Date & Time and the End Date & Time match what you entered when creating the event.
  8. You can now delete the event if you wish.

Technical Documentation

routes/admin/events.rb

  • Changed duration from 0 to a formula that calculates it based on the event's start and end time. Previously it would be set to 0 whenever an event was edited, making the event's end time be the same as the start time.