Adding copy locations in staff client allows empty name field
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Won't Fix
|
Low
|
Unassigned |
Bug Description
EG: 2.5.5
OS: Ubuntu 12.04
Postgtresql: 9.1
When adding or editing copy locations in the staff client, a user is able to leave the name field blank. This seems to cause havoc on Circulation Policies since the id of the blank copy location will populate the copy_location limiter in the circulation policy if that limiter is left blank.
To verify do the following:
1. Create or edit a copy location and leave the name field blank.
2. Go to Circulation Policies Editor and create a new circ policy or edit an existing one leaving the copy_location on the default blank option.
3. Run an SQL query on the config.
Should there be a data check to prevent Copy Locations with empty names from being added to the table?
Or
Should the Circ Policies editor have an if statement to default to NULL if left on blank default option before searching for a match in the copy locations table based on name selected?
Behavior is confirmed in current master.