Bugzilla – Attachment 77450 Details for
Bug 21149
Administrator creation in onboarding always fails
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21149: Fix superlibrarian creation in onboarding
Bug-21149-Fix-superlibrarian-creation-in-onboardin.patch (text/plain), 2.13 KB, created by
Owen Leonard
on 2018-08-02 16:09:02 UTC
(
hide
)
Description:
Bug 21149: Fix superlibrarian creation in onboarding
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2018-08-02 16:09:02 UTC
Size:
2.13 KB
patch
obsolete
>From 056cbcaca9f9d857101ca33064508f0c2aa2ce0a Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 2 Aug 2018 11:47:24 -0300 >Subject: [PATCH] Bug 21149: Fix superlibrarian creation in onboarding > >See bug 21087 for more details. > >Test plan: >Drop your DB >Start the installation process >Use the onboarding process to install missing data >The superlibrarian created during this process should be created >sucessfully and allowed to login > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > installer/onboarding.pl | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > >diff --git a/installer/onboarding.pl b/installer/onboarding.pl >index 930c4aa..ceee2e4 100755 >--- a/installer/onboarding.pl >+++ b/installer/onboarding.pl >@@ -173,12 +173,10 @@ if ( $step == 3 ) { > branchcode => scalar $input->param('libraries'), > categorycode => scalar $input->param('categorycode_entry'), > userid => scalar $input->param('userid'), >- password => scalar $input->param('password'), >- password2 => scalar $input->param('password2'), > privacy => "default", > address => "", > city => "", >- flags => 1, # Will be superlibrarian >+ flags => 1, # Will be superlibrarian > }; > > my $patron_category = >@@ -187,7 +185,8 @@ if ( $step == 3 ) { > $patron_category->get_expiry_date( $patron_data->{dateenrolled} ); > > eval { >- Koha::Patron->new($patron_data)->store; >+ my $patron = Koha::Patron->new($patron_data)->store; >+ $patron->update_password($patron->userid, $firstpassword); > }; > > #Error handling checking if the patron was created successfully >@@ -195,6 +194,7 @@ if ( $step == 3 ) { > push @messages, { code => 'success_on_insert_patron' }; > } > else { >+ warn $@; > push @messages, { code => 'error_on_insert_patron' }; > } > } >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 21149
:
77447
|
77450
|
77485