]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP#1773832: Empty deleted records can be surfaced in search results
authorMike Rylander <mrylander@gmail.com>
Wed, 20 Jun 2018 13:22:38 +0000 (09:22 -0400)
committerJason Stephenson <jason@sigio.com>
Wed, 27 Jun 2018 23:11:00 +0000 (19:11 -0400)
commite9accd82769f4ec396b7365c25579de9d8c0ff31
tree95ca202e5413b9da5b6ba33259674b9ff80a3540
parent3ea9d98244ff052b9a36ceb1db5e2c0d790afa08
LP#1773832: Empty deleted records can be surfaced in search results

There are cases where we avoid checking the deleted flag of bibs as an
optimization that avoids a JOIN in the search query.  However, for some
shapes of real-world data, particularly in upgraded instances, deleted
records can slip through.  This commit adds an explicit check for the
flag to all search queries.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Daniel Pearl <dpearl@cwmars.org>
Signed-off-by: Jason Stephenson <jason@sigio.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm