Bug 14702: [QA Follow-up] More readable variable names, less queries
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Tue, 1 Sep 2015 13:39:16 +0000 (15:39 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 7 Sep 2015 15:04:49 +0000 (12:04 -0300)
commite2a87c54c0c7d26d131e0bff147d6bab1bcaa792
tree206fe4bb5f906b96ea67cabb69926f56abdb35b4
parent48e3e1ab275c999acb9ec5150f27b22394642c5b
Bug 14702: [QA Follow-up] More readable variable names, less queries

The names are much better now :)
Combined the queries for items and issues.
Only check the number of holds when needed.

Test plan:
Verify the changes here by running the unit test again.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Joonas Kylmälä <j.kylmala@gmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Reserves.pm