]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1623541: Booking will fail if its router isn't called "router"
authorMike Rylander <mrylander@gmail.com>
Wed, 14 Sep 2016 14:44:15 +0000 (10:44 -0400)
committerDan Wells <dbw2@calvin.edu>
Tue, 20 Sep 2016 18:03:37 +0000 (14:03 -0400)
commitaaa0aec365419d20ff538759cbc33583846fcd95
tree719084ee403d48b06d614cd7c5b02f9d007eb12f
parentba80a25631575789e745d09614f56c9e44c25239
LP#1623541: Booking will fail if its router isn't called "router"

The circ code checks to see if the booking app is running, and if not, it
skips some booking-related logic. This is a useful performance enhancement
where booking is not in use. It does this by asking the OpenSRF router if
the "open-ils.booking" app has registered with it. Most of the time the
OpenSRF router will be called, unimaginatively, "router" but when it's not,
booking will not be considered by the circ module even if it's running.

Instead of assuming "router" we should simply look up the router's name.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm