]> 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:12:22 +0000 (19:12 -0400)
commita51393b20defc3cf573c52ddf9bba412ff1ed052
tree3c8343ae792e5f8ce8815ae00d443afa58ce6093
parent0f3aa6168659f03d0995cdcafe60389ba99b5093
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