mikaeljorhult / hydrofon

Equipment booking system.
MIT License
23 stars 11 forks source link

Booking refresh crashes #127

Closed Riko0 closed 1 year ago

Riko0 commented 1 year ago

@mikaeljorhult, hello again!

thank you for this great repo!

another thing that leads to crush

In bookings list there is a refresh button (i guess for ongoing bookings that are not checked in)

screenshot_hydrofon_booking_refresh

if i click on it, i get screenshot_hydrofon_booking_refresh_2

looks like some values are not delivered to update command

mikaeljorhult commented 1 year ago

Thank you for catching and reporting this.

That button is for switching a booking resource to another available resource within the same bucket(s). I assume that you might have had only one resource in the bucket or that no other was available.

I pushed a fix that check before the resource change is saved and displays and error if not possible.