NatLibFi / koha-plugin-rest-di

REST API plugin for Koha to provide additional functionality for discovery interfaces such as VuFind
GNU General Public License v3.0
9 stars 9 forks source link

Fix hold availability calculation with newer Koha versions #6

Closed ghost closed 3 years ago

ghost commented 3 years ago

The holds availability calculation stopped working after the commit "Bug 27069: Adapt uses of holdallowed" (1d9d05613b9) was introduced in Koha. The return value of GetBranchItemRule() is now a string in newer Koha versions. To keep the plugin working with older Koha versions we keep the checks for integer return values as well.