[open-ils-commits] [GIT] Evergreen ILS branch rel_1_6 updated. 63836649487cff867dcee4737f902a7f34a4c241

Evergreen Git git at git.evergreen-ils.org
Tue May 24 12:11:22 EDT 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_1_6 has been updated
       via  63836649487cff867dcee4737f902a7f34a4c241 (commit)
      from  eb67809723b056308a8f7491966866d5885545cc (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 63836649487cff867dcee4737f902a7f34a4c241
Author: Galen Charlton <gmc at esilibrary.com>
Date:   Tue May 17 00:40:02 2011 -0400

    stop hold permit check from crashing if age protection in effect
    
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>

diff --git a/Open-ILS/src/sql/Pg/110.hold_matrix.sql b/Open-ILS/src/sql/Pg/110.hold_matrix.sql
index 4105472..602bcdb 100644
--- a/Open-ILS/src/sql/Pg/110.hold_matrix.sql
+++ b/Open-ILS/src/sql/Pg/110.hold_matrix.sql
@@ -174,6 +174,7 @@ DECLARE
     transit_range_ou_type    actor.org_unit_type%ROWTYPE;
     transit_source        actor.org_unit%ROWTYPE;
     item_object        asset.copy%ROWTYPE;
+    item_cn_object     asset.call_number%ROWTYPE;
     result            action.matrix_test_result;
     hold_test        config.hold_matrix_matchpoint%ROWTYPE;
     hold_count        INT;
@@ -308,6 +309,7 @@ BEGIN
 
         IF item_object.create_date + age_protect_object.age > NOW() THEN
             IF hold_test.distance_is_from_owner THEN
+                SELECT INTO item_cn_object * FROM asset.call_number WHERE id = item_object.call_number;
                 SELECT INTO hold_transit_prox prox FROM actor.org_unit_proximity WHERE from_org = item_cn_object.owning_lib AND to_org = pickup_ou;
             ELSE
                 SELECT INTO hold_transit_prox prox FROM actor.org_unit_proximity WHERE from_org = item_object.circ_lib AND to_org = pickup_ou;

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/src/sql/Pg/110.hold_matrix.sql |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list