From: Jeff Godin Date: Tue, 29 May 2012 14:28:50 +0000 (-0400) Subject: Fix IDL and OU setting check for staged users X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7f04ee6f56bebc747fdaf0b3cce5febec57fdba7;p=evergreen%2Fmasslnc.git Fix IDL and OU setting check for staged users The IDL had references to sequences that do not exist: staging.usr_stage_row_id_seq -- a typo, fixed In the case of staging.billing_address_stage_row_id_seq, the staging.billing_address_stage table is created with LIKE, and uses the sequence staging.mailing_address_stage_row_id_seq The OU setting check for the open-ils.actor.user.stage.create API call was not passing an org unit, and would always fail. We now pass the home_ou of the user being staged. At this point, the opac.allow_pending_user OU setting type must be manually created before its value can be set. Signed-off-by: Jeff Godin Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index 882fe12d5f..5053070a68 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -8922,7 +8922,7 @@ SELECT usr, - + @@ -8967,7 +8967,7 @@ SELECT usr, - + diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor/Stage.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor/Stage.pm index 77bc6853d1..ff608791c8 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor/Stage.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor/Stage.pm @@ -33,8 +33,8 @@ __PACKAGE__->register_method ( sub create_user_stage { my($self, $conn, $user, $mail_addr, $bill_addr, $statcats) = @_; # more? - return 0 unless $U->ou_ancestor_setting_value('opac.allow_pending_user'); return OpenILS::Event->new('BAD_PARAMS') unless $user; + return 0 unless $U->ou_ancestor_setting_value($user->home_ou, 'opac.allow_pending_user'); my $e = new_editor(xact => 1);