Fix some standing penalty issues user/tsbere/penalty_fixes
authorThomas Berezansky <tsbere@mvlc.org>
Fri, 9 Sep 2011 18:31:27 +0000 (14:31 -0400)
committerThomas Berezansky <tsbere@mvlc.org>
Fri, 9 Sep 2011 18:31:27 +0000 (14:31 -0400)
commit557383ae637df93729f83925923d99206d046c4d
tree5a7e2caa46e49be137712863b84605a18c823d9f
parent6d21b9431c8d73c88b8d41c874ff766c11f90746
Fix some standing penalty issues

Circulations were using the circ matchpoint org unit for blocking.
That could, depending on the matchpoint that matched, result in staff
not being able to see the penalty that is being blocked for.

In addition, blocking is done based on the full path, not ancestors.
But, backend functions only used ancestors. Changed them to use the
full_path variant instead.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm
Open-ILS/src/perlmods/lib/OpenILS/Utils/Penalty.pm
Open-ILS/src/sql/Pg/100.circ_matrix.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.penalty_fixes.sql [new file with mode: 0644]