[open-ils-commits] r13312 - trunk/Open-ILS/src/sql/Pg (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Jun 3 20:00:57 EDT 2009
Author: miker
Date: 2009-06-03 20:00:57 -0400 (Wed, 03 Jun 2009)
New Revision: 13312
Modified:
trunk/Open-ILS/src/sql/Pg/300.schema.staged_search.sql
Log:
do not use Located URIs for record inclusion when a copy location filter is requested
Modified: trunk/Open-ILS/src/sql/Pg/300.schema.staged_search.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/300.schema.staged_search.sql 2009-06-03 20:05:18 UTC (rev 13311)
+++ trunk/Open-ILS/src/sql/Pg/300.schema.staged_search.sql 2009-06-04 00:00:57 UTC (rev 13312)
@@ -430,6 +430,7 @@
WHERE NOT cn.deleted
AND cn.label = '##URI##'
AND uri.active
+ AND ( param_locations IS NULL OR array_upper(param_locations, 1) IS NULL )
AND cn.record IN ( SELECT * FROM search.explode_array( core_result.records ) )
AND cn.owning_lib IN ( SELECT * FROM search.explode_array( search_org_list ) )
LIMIT 1;
More information about the open-ils-commits
mailing list