acquisitions general search can try to retrieve all copies in the database

Bug #1269042 reported by Galen Charlton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Status tracked in Main
2.4
Fix Released
Low
Unassigned
2.5
Fix Released
Low
Unassigned
Main
Fix Released
Low
Unassigned

Bug Description

When using the acquisitions general search form, setting a search field to "LID - Evergreen Copy ID" will cause the form to try to create a drop-down widget containing the ID of every copy in the database. Except for very small databases, this will not work, as it will take forever and will cause a PCRUD backend to consume a large amount of memory on the server.

Expected behavior: the appropriate widget for a copy ID search is an ordinary text input. An argument could be made that acqlid.eg_copy_id shouldn't even be an option at all, as it would be of dubious use for normal staff.

Evergreen master

Galen Charlton (gmc)
tags: added: acquisitions
Revision history for this message
Galen Charlton (gmc) wrote :

A patch is available in the user/gmcharlt/lp1269042_avoid_making_acp_id_dropdown branch of the working/Evergreen repository:

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

tags: added: pullrequest
Revision history for this message
Mike Rylander (mrylander) wrote :

FUN TIMES! I like it. Pushing to the appropriate branches now.

Revision history for this message
Mike Rylander (mrylander) wrote :

Done and done.

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.