Bugzilla – Attachment 35404 Details for
Bug 13602
Username/password already exists when editing borrower attributes and messaging preferences
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13602 - Username/password already exists when editing borrower attributes and messaging preferences
Bug-13602---Usernamepassword-already-exists-when-e.patch (text/plain), 1.30 KB, created by
Olli-Antti Kivilahti
on 2015-01-20 14:49:39 UTC
(
hide
)
Description:
Bug 13602 - Username/password already exists when editing borrower attributes and messaging preferences
Filename:
MIME Type:
Creator:
Olli-Antti Kivilahti
Created:
2015-01-20 14:49:39 UTC
Size:
1.30 KB
patch
obsolete
>From e4f08140c6c7bce5f9984c95b76a6083de8a3612 Mon Sep 17 00:00:00 2001 >From: Olli-Antti Kivilahti <olli-antti.kivilahti@jns.fi> >Date: Tue, 20 Jan 2015 16:48:13 +0200 >Subject: [PATCH] Bug 13602 - Username/password already exists when editing > borrower attributes and messaging preferences > >When editing a Patron's messaging preferences or borrower attributes, one cannot >save changes because 'userid' is not given as a parameter. > >It shouldn't, but the >Check_Userid($newdata{'userid'},$borrowernumber) -check must have it. > >AFTER THIS PATCH: >Check_Userid() is not called when modifying or saving partial borrower properties. >--- > members/memberentry.pl | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/members/memberentry.pl b/members/memberentry.pl >index 5db8273..76f8bd4 100755 >--- a/members/memberentry.pl >+++ b/members/memberentry.pl >@@ -328,8 +328,8 @@ if ($op eq 'save' || $op eq 'insert'){ > } > } > } >- # Check if the userid is unique >- unless (Check_Userid($newdata{'userid'},$borrowernumber)) { >+ # Check if the userid is unique. userid is not passed if we are modifying the messaging preferences or borrower attributes. >+ if (($op ne 'modify' && $op ne 'save') && not(Check_Userid($newdata{'userid'},$borrowernumber))) { > push @errors, "ERROR_login_exist"; > } > >-- >1.7.9.5
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 13602
:
35404
|
35435
|
35436
|
35437
|
35648
|
35650
|
35651