Thinko fix for field name. The script would not commit, so please simply reapply...
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 6 Oct 2010 13:53:18 +0000 (13:53 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 6 Oct 2010 13:53:18 +0000 (13:53 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@18198 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/sql/Pg/110.hold_matrix.sql
Open-ILS/src/sql/Pg/upgrade/0430.schema.strict_ou_test.sql

index 7190a36..a526c7f 100644 (file)
@@ -172,7 +172,7 @@ BEGIN
                 IF NOT current_mp.strict_ou_match THEN
                     SELECT INTO tmp_weight 1.0 / (actor.org_unit_proximity(current_mp.user_home_ou, user_object.home_ou)::FLOAT + 1.0)::FLOAT;
                 ELSE
-                    tmp_weight := CASE WHEN current_mp.user_home_ou = user_object.home_lib THEN 1.0 ELSE 0.0 END;
+                    tmp_weight := CASE WHEN current_mp.user_home_ou = user_object.home_ou THEN 1.0 ELSE 0.0 END;
                 END IF;
                 current_mp_weight := current_mp_weight - tmp_weight;
             END IF; 
index a97651d..a423e05 100644 (file)
@@ -117,7 +117,7 @@ BEGIN
                 IF NOT current_mp.strict_ou_match THEN
                     SELECT INTO tmp_weight 1.0 / (actor.org_unit_proximity(current_mp.user_home_ou, user_object.home_ou)::FLOAT + 1.0)::FLOAT;
                 ELSE
-                    tmp_weight := CASE WHEN current_mp.user_home_ou = user_object.home_lib THEN 1.0 ELSE 0.0 END;
+                    tmp_weight := CASE WHEN current_mp.user_home_ou = user_object.home_ou THEN 1.0 ELSE 0.0 END;
                 END IF;
                 current_mp_weight := current_mp_weight - tmp_weight;
             END IF;