a couple more queries should check for deleted copy locations

Bug #1424813 reported by Galen Charlton
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Low
Unassigned

Bug Description

The patch for bug 1210541 introduces a new deleted flag column in the asset.copy_location table. That patch adds checks on that flag as needed, but there are a couple spots left where that check should be added:

OpenILS::Application::AppUtils::basic_opac_copy_query()

Even though other TPAC code has the effect of filtering out any items whose copy location is marked as deleted, the query in this routine should also filter out such items for the sake of consistency.

OpenILS::Application::Circ::Holds::_check_title_hold_is_possible()

As another bit of defensive coding, items whose copy location is deleted should be excluded.

One thing to note is that while there *shouldn't* be undeleted copies attached to deleted copy locations, there isn't at present a DB constraint in place that enforces that. Consequently, adding filters on acpl.deleted in all the relevant queries would add some defensive programming.

Evergreen master

Tags: pullrequest
Revision history for this message
Galen Charlton (gmc) wrote :

A patch is available at the tip of the user/gmcharlt/lp1423813_more_acpl_deleted_filters branch in the working/Evergreen repository:

http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/gmcharlt/lp1423813_more_acpl_deleted_filters

tags: added: pullrequest
Changed in evergreen:
assignee: Galen Charlton (gmc) → nobody
Revision history for this message
Ben Shum (bshum) wrote :

Pushed to master for 2.8 beta.

Changed in evergreen:
status: New → Fix Committed
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.