Manage Reservations grid ignores org selector on initial load
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
New
|
Undecided
|
Unassigned |
Bug Description
On Booking > Manage Reservations, the grid shows reservations for the whole consortium, even though the "Reservation location" org selector defaults to the current working location + descendants. The console shows this error:
ManageReservati
at ReservationsGri
at checkAndUpdateD
at checkAndUpdateN
at checkAndUpdateNode (core.js:44305)
at debugCheckAndUp
at debugCheckDirec
at Object.eval [as updateDirectives] (ManageReservat
at Object.
at checkAndUpdateView (core.js:44270)
at callViewAction (core.js:44636)
View permissions for reservations are global (bug 1835127), which exacerbates the problem. Only the initial page load is affected; if you modify the reservation location by unchecking Descendants or whatever, the grid scopes correctly, so there's an easy workaround.
I see this behavior on master (3.5 beta-ish). 3.4 may also be affected.
tags: | added: booking |
I wonder if this is a lifecycle hooks issue, where this.reloadGrid() just needs to be moved out of ngOnInit in eg2/src/ app/staff/ booking/ reservations- grid.component. ts.
If I have time, I'll take a look at this tonight.