Fix logic in get_compressed_holdings()
authorDan Wells <dbw2@calvin.edu>
Wed, 8 May 2013 19:09:41 +0000 (15:09 -0400)
committerDan Wells <dbw2@calvin.edu>
Tue, 2 Jul 2013 15:11:20 +0000 (11:11 -0400)
commitf43b06a5e24748ec59d085d2e87ffe27cda5a0b3
tree71532d5b6143d291f9ecd2d5b48aa782b3972a74
parenta8272b6f646e241929a56d38d0b57210b90499a5
Fix logic in get_compressed_holdings()

This commit rearranges some of the logic branches to protect
against an unusual case of having two holding statements with
the same start value, but one being open-ended and one not.

See the test case in the previous commit for more clarity.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/perlmods/lib/OpenILS/Utils/MFHD.pm