CentralAZ / Rock-CentralAZ

An open source CMS, Relationship Management System (RMS), Church Management System (ChMS), and composable application framework.
http://www.rockrms.com
17 stars 3 forks source link

[RR] Null Reference Error when linked event is deleted from the Calendar page #147

Closed BEGamache closed 4 years ago

BEGamache commented 4 years ago

Prerequisites

Description

When linking the Reservation to an event, if the event is deleted from the Calendar page, it causes an error when trying to view that Reservation through the Room Management detail page. It is throwing a null reference since the Reservation thinks the event still exists. An idea to fix this is to delete the event id from record and still load the reservation details, with the possibility of popping up a message saying the event was deleted and has been unlinked from the Reservation. The user should link to a new event if there is one.

Screen Shot 2020-03-04 at 3 05 36 PM

Steps to Reproduce

  1. Create a reservation.
  2. Link to an existing Calendar Event or create a new one.
  3. Delete the Calendar Event from the Calendar page from the internal site
  4. Go back to the Reservation's detail page and see the error.

Expected behavior:

Access to the reservation details

Actual behavior:

Null Reference Error page

Versions

nairdo commented 4 years ago

Fixed in v1.5.2 by TC via https://github.com/centralaz/rock-centralaz/commit/dbe8e04a5c1689f40aa55326724eed827b2ca63e.