Cannot add Circulation Weights Set due to non-null constraint
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
New
|
Undecided
|
Unassigned |
Bug Description
Evergreen 2.1.1
OpenSRF 2.0.1
PostgreSQL 9.1
Debian 6.0 "squeeze"
When attempting to add a new set of circulation matrix weights in Admin -> Server Administration -> Circulation Matchpoint Weights, the interface does not show an error, but the newly-created set is not saved. A look at the PostgreSQL logs shows the following:
2012-08-17 14:07:09 db01 postgres[27304]: [4-1] 2012-08-17 14:07:09 EDT ERROR: null value in column "juvenile_flag" violates not-null constraint
2012-08-17 14:07:09 db01 postgres[27304]: [4-2] 2012-08-17 14:07:09 EDT STATEMENT: INSERT INTO config.
2012-08-17 14:07:09 db01 postgres[27304]: [5-1] 2012-08-17 14:07:09 EDT ERROR: current transaction is aborted, commands ignored until end of transaction block
And, indeed, there is no field in the UI's submission form for juvenile flag, meaning that it is not possible to create a new circ matrix matchpoint weight set via the UI.
I believe this is fixed by the changes in https:/ /bugs.launchpad .net/evergreen/ +bug/985009