Cannot add Circulation Weights Set due to non-null constraint

Bug #1038205 reported by Chris Sharp
6
This bug affects 1 person
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.circ_matrix_weights (id,name,org_unit,copy_circ_lib,copy_owning_lib,user_home_ou,grp,circ_modifier,marc_type,marc_form,marc_vr_format,ref_flag,usr_age_lower_bound,usr_age_upper_bound) VALUES (DEFAULT,'PINES','10','8','8','8','11','8','4','3','2','1','0','0');
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.

Revision history for this message
Thomas Berezansky (tsbere) wrote :

I believe this is fixed by the changes in https://bugs.launchpad.net/evergreen/+bug/985009

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.