remove these as well, to prevent errors creating items
authorJason Etheridge <jason@esilibrary.com>
Fri, 1 Apr 2011 20:28:37 +0000 (16:28 -0400)
committerJason Etheridge <jason@esilibrary.com>
Fri, 1 Apr 2011 20:28:37 +0000 (16:28 -0400)
Open-ILS/src/sql/Pg/999.functions.global.sql

index 82cb509..0026b20 100644 (file)
@@ -1193,8 +1193,6 @@ BEGIN
                         JOIN asset.copy_location cl ON (cp.location = cl.id)
                         JOIN config.copy_status cs ON (cp.status = cs.id)
                   WHERE NOT cp.deleted
-                        AND NOT cn.deleted
-                        AND NOT b.deleted
                         AND cs.opac_visible
                         AND cl.opac_visible
                         AND cp.opac_visible