Bug 30085: Don't fetch ReservesControlBranch twice
authorNick Clemens <nick@bywatersolutions.com>
Fri, 11 Feb 2022 19:39:33 +0000 (19:39 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 23 Feb 2022 08:27:28 +0000 (22:27 -1000)
commitaa7bffc1a3f2fa3b75b0cb5b089dc9dfa713624d
tree44356490350ccec4aa1689c5688dfa5810ea30bf
parent5efaed428e41f7ef87c1c6bd7ca97c8962626e72
Bug 30085: Don't fetch ReservesControlBranch twice

We essentially copy the code from GetReservesControlBranch here, because we
also calculate 'branchfield'

Setting it to "" vs undef makes no difference in this code, so lets not fetch this
again later.

Rename the variable to make it clearer where the branchcode came from

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Reserves.pm