Fix some standing penalty issues
authorThomas Berezansky <tsbere@mvlc.org>
Fri, 9 Sep 2011 18:31:27 +0000 (14:31 -0400)
committerMike Rylander <mrylander@gmail.com>
Fri, 9 Sep 2011 19:43:25 +0000 (15:43 -0400)
commit8554063123fa0318f12fbb12e14e05a94b0963b4
treeb469f6e063fe93d0d67976cc55e17d0a625f21f8
parentaadf3fc2003ad94632a20e34676fcec6afb290a9
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>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
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]