Bugzilla – Attachment 101983 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.61 KB, created by
Marcel de Rooy
on 2020-03-27 10:43:40 UTC
(
hide
)
Description:
Bug 23473: (follow-up) check if overwrite_passwords is set
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2020-03-27 10:43:40 UTC
Size:
2.61 KB
patch
obsolete
>From bd51f215be68dd7a44447b0c0173a9beffe1b70d 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 >Content-Type: text/plain; charset=utf-8 > >--- > 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 b10e023191..f2b72c2477 100755 >--- a/tools/import_borrowers.pl >+++ b/tools/import_borrowers.pl >@@ -121,14 +121,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