ulsdevteam / lcsu

0 stars 0 forks source link

Adding a tray size to a shelf prevents allocating trays #33

Closed ctgraham closed 5 years ago

ctgraham commented 5 years ago

The shelves/add method allows selection of a tray size for the shelf, but we are likely going to want to add shelves (probably multiple) without deciding the tray size at the time of add.

If a shelf has a Tray Size assigned, this prevents it from being selected in the shelves/find-available method. For example:

Expected: Just added shelf is available to allocate trays

Actual: Just added shelf is not listed.

https://github.com/ulsdevteam/lcsu/blob/c59adcfab4159701213f24f1fbd55a122b5a1edd/src/Controller/ShelvesController.php#L205