Bugzilla – Attachment 3960 Details for
Bug 6218
patron login gets an initial dot added when no first name
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix Member.pm
0001-Bug-6218-patron-gets-dot-added-if-no-first-name.patch (text/plain), 970 bytes, created by
Fernando L. Canizo
on 2011-04-20 21:17:50 UTC
(
hide
)
Description:
fix Member.pm
Filename:
MIME Type:
Creator:
Fernando L. Canizo
Created:
2011-04-20 21:17:50 UTC
Size:
970 bytes
patch
obsolete
>From 9beb5e6bec27706b7dfeace56a231f229f533c61 Mon Sep 17 00:00:00 2001 >From: conan (aka Fernando Canizo) <conan@lugmen.org.ar> >Date: Wed, 20 Apr 2011 17:04:37 -0300 >Subject: [PATCH] Bug 6218: patron gets dot added if no first name >Content-Type: text/plain; charset="utf-8" > >Trivial fix, now it choose surname if firstname is empty and behaves >like before (firstname.surname) if both are provided. >--- > C4/Members.pm | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/C4/Members.pm b/C4/Members.pm >index f0ac280..df353c4 100644 >--- a/C4/Members.pm >+++ b/C4/Members.pm >@@ -842,7 +842,7 @@ sub Generate_Userid { > do { > $firstname =~ s/[[:digit:][:space:][:blank:][:punct:][:cntrl:]]//g; > $surname =~ s/[[:digit:][:space:][:blank:][:punct:][:cntrl:]]//g; >- $newuid = lc("$firstname.$surname"); >+ $newuid = lc(($firstname)? "$firstname.$surname" : $surname); > $newuid .= $offset unless $offset == 0; > $offset++; > >-- >1.7.4.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 6218
: 3960