LP#1980887: fixes cases where shelving location selector didn't work
authorGalen Charlton <gmc@equinoxOLI.org>
Fri, 9 Sep 2022 21:44:46 +0000 (17:44 -0400)
committerMichele Morgan <mmorgan@noblenet.org>
Wed, 14 Sep 2022 15:16:25 +0000 (11:16 -0400)
commitfc0ce105a7baeee24fc0106396b5cedefff48b7a
treee174c4192b9aba64adc553eb49f22c33552d3a24
parent2bd722c190afaa6e76d7dff9c42a835fd8295017
LP#1980887: fixes cases where shelving location selector didn't work

This patch fixes an issue where the Angular shelving location selection
component (eg-item-location-select) wouldn't work (in particular,
when its contextOrgIds wasn't set, as opposed to contextOrgId).

Coding note: TypeScript confounds the Perl programmer: an empty array
evaulates to true; .length needs to be checked instead.

To test
-------
[1] Apply the patch.
[2] Verify that the shelving location selector works in the following
    interfaces:

    - Acquisitions Administration -> Distribution Formuals
    - Course Materials (in the material form for a course)
    - Linked locations for Circulation Limit Sets

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Open-ILS/src/eg2/src/app/share/item-location-select/item-location-select.component.ts