LP1204273 - Repair org unit settings for making state not required user/bshum/fix-aua-state-settings
authorBen Shum <bshum@biblio.org>
Mon, 22 Jul 2013 19:10:37 +0000 (15:10 -0400)
committerBen Shum <bshum@biblio.org>
Tue, 23 Jul 2013 21:13:49 +0000 (17:13 -0400)
commit52adb191e07e08b275e2c748d8c200bc11b17f7c
tree70e1340b6501f83fa2ad55703bd92afe6bbcf482
parentc5980d3a22e04b15e08406bffc77c38e9ac4a31b
LP1204273 - Repair org unit settings for making state not required

As noted by tsbere in IRC, the org unit settings were using "au" instead of "aua"
which led to issues applying the settings and making the addresses require the
state field.

Also, change the constraint for field_name on actor.org_unit_setting_type_log to
be "DEFERRABLE INITIALLY DEFERRED" to be more flexible and consistent with other
parts of the database relating to org unit setting names.

And, the table auditor.actor_usr_address_history needs to be updated so that
state can be NULL there as well.

Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.data.state-field-settings-fix.sql [new file with mode: 0644]
Open-ILS/web/js/ui/default/actor/user/register.js