Bugzilla – Attachment 95051 Details for
Bug 23473
Add option to import/overwrite passwords when using the patron import tool
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23473: (follow-up) check if overwrite_passwords is set
Bug-23473-follow-up-check-if-overwritepasswords-is.patch (text/plain), 2.57 KB, created by
Nick Clemens (kidclamp)
on 2019-11-05 12:59:31 UTC
(
hide
)
Description:
Bug 23473: (follow-up) check if overwrite_passwords is set
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2019-11-05 12:59:31 UTC
Size:
2.57 KB
patch
obsolete
>From b22903e8d0eb3537f8de61d3c44ec2a91b1aaae7 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Tue, 29 Oct 2019 10:24:42 +0000 >Subject: [PATCH] Bug 23473: (follow-up) check if overwrite_passwords is set > >--- > koha-tmpl/intranet-tmpl/prog/en/modules/tools/import_borrowers.tt | 4 ++-- > tools/import_borrowers.pl | 4 ++-- > 2 files changed, 4 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/import_borrowers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/import_borrowers.tt >index 52a07d9c57..e7c463124b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/import_borrowers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/import_borrowers.tt >@@ -222,8 +222,8 @@ > <input type="radio" id="overwrite_cardnumberyes" name="overwrite_cardnumber" value="1" /><label for="overwrite_cardnumberyes">Overwrite the existing one with this</label> > <ul> > <li> >- <input type="checkbox" id="overwrite_passwords" name="overwrite_passwords" disabled="true"/> >- <label for="overwrite_passwords">Replace patron passwords with those in the file</label> >+ <input class="overwrite_passwords" type="checkbox" id="overwrite_passwords" name="overwrite_passwords" disabled/> >+ <label class="overwrite_passwords" for="overwrite_passwords">Replace patron passwords with those in the file</label> > </li > </ul> > </li> >diff --git a/tools/import_borrowers.pl b/tools/import_borrowers.pl >index 4324b3a71b..f4a2b4a6b2 100755 >--- a/tools/import_borrowers.pl >+++ b/tools/import_borrowers.pl >@@ -120,14 +120,14 @@ if ( $uploadborrowers && length($uploadborrowers) > 0 ) { > > my $handle = $input->upload('uploadborrowers'); > my %defaults = $input->Vars; >- >+ my $overwrite_passwords = defined $input->param('overwrite_passwords') ? 1 : 0; > my $return = $Import->import_patrons( > { > file => $handle, > defaults => \%defaults, > matchpoint => $matchpoint, > overwrite_cardnumber => $input->param('overwrite_cardnumber'), >- overwrite_passwords => $input->param('overwrite_passwords'), >+ overwrite_passwords => $overwrite_passwords, > preserve_extended_attributes => $input->param('ext_preserve') || 0, > } > ); >-- >2.11.0
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 23473
:
92352
|
93073
|
93074
|
93594
|
94822
|
95049
|
95050
|
95051
|
95052
|
96998
|
96999
|
97000
|
97001
|
97002
|
97003
|
98382
|
101981
|
101982
|
101983
|
101984
|
101985
|
101986
|
101987
|
101988