Koha-clms/members
Adrien Saurat 2ab1400702 Bug 9484: userid not generated consistently (different editing pages)
When modifying a patron through different pages, the userid
generation does not behave always the same way; this patch
corrects this:
- when firstname and surname are present in the form, they
are used for the generation;
- if there are not in the form, the firstname and surname
in database are used instead.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>

Comment: Work as described. No errors.
Test
This patch lacks a test plan, so I do the following
1) New user, empty userid, autocompleted
2) Edit user, change userid, saved correctly
3) Edit user, main edit window, emptied userid, autocompleted
4) Edit user, Detail > Library use, emptied userid, not autocomplete (not even a dot)
5) Applied patch
6) Repeated 1-3, same behavior
7) Repeated 4), now autocompletes with same userid as 3)

So, works as described.
No koha-qa errors.

NOTE: It's impossible now to delete userid from interface.

Off-topic: tried an userid in Arabic, works very well.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2013-04-25 09:45:04 +12:00
..
boraccount.pl Bug 7671 : add a real primary key accountlines_id in accountlines 2012-09-15 07:31:58 +02:00
default_messageprefs.pl Fix FSF address in directory members/ 2010-03-16 20:17:55 -04:00
deletemem.pl Bug 7310: Improving list permissions: Deleting patron 2012-03-21 16:47:03 +01:00
files.pl Bug 8598 - No patron image or home library on Files & Statistics tabs 2012-09-13 18:12:17 +02:00
guarantor_search.pl bug_6253: Unified member Search() 2011-10-19 16:23:02 +13:00
mancredit.pl Bug 9953 - When OpacMaintenance breaks lifting debarment 2013-03-31 15:00:11 +13:00
maninvoice.pl Bug 9953 - When OpacMaintenance breaks lifting debarment 2013-03-31 15:00:11 +13:00
member-flags.pl Bug 6964 - 'Add child' function should be dependant on system preference 'borrowerRelationship' 2012-02-02 11:36:05 +01:00
member-password.pl Bug 9953 - When OpacMaintenance breaks lifting debarment 2013-03-31 15:00:11 +13:00
member-picupload.pl Bug 6679 :[SIGNED-OFF] members dir now passes perlcritic tests 2012-04-10 13:44:53 +02:00
member.pl Bug 9407: patrons search should match substrings 2013-02-01 21:24:29 +13:00
memberentry.pl Bug 9484: userid not generated consistently (different editing pages) 2013-04-25 09:45:04 +12:00
members-home.pl Bug 2505: Suppress some warnings emitted by members-home.pl 2011-07-11 21:05:37 +12:00
moremember.pl Bug 8590 - checked out from missing on patron detail 2012-08-29 18:37:54 +02:00
notices.pl Bug 6964 - 'Add child' function should be dependant on system preference 'borrowerRelationship' 2012-02-02 11:36:05 +01:00
patronimage.pl Bug 5385: POD Cleanups (part 1) 2010-11-12 10:06:55 +13:00
pay.pl Bug 9380 - branch not recording right on writeoff 2013-02-14 21:39:10 +13:00
paycollect.pl Bug 9141 - Untranslatable strings on "pay an amount..." page 2013-01-13 08:20:33 +13:00
printfeercpt.pl Bug 4440: Revised combined patch to print fee receipts and invoices 2010-11-18 14:33:27 +13:00
printinvoice.pl Bug 7671 : add a real primary key accountlines_id in accountlines 2012-09-15 07:31:58 +02:00
printslip.pl Bug 7563 - Silent print slips using Firefox PlugIn jsPrintSetup and new staff client preference 2012-07-06 18:23:39 +02:00
readingrec.pl Bug 9720 : uninitialized value warnings in circulation (followup 1) 2013-04-24 22:20:30 +12:00
routing-lists.pl Bug 7839 [ENH] : Add tab in patron record to show patron's routing lists 2012-08-02 11:26:43 +02:00
setdebar.pl Bug 9953 - When OpacMaintenance breaks lifting debarment 2013-03-31 15:00:11 +13:00
setstatus.pl Bug 9953 - When OpacMaintenance breaks lifting debarment 2013-03-31 15:00:11 +13:00
statistics.pl Bug 8598 - No patron image or home library on Files & Statistics tabs 2012-09-13 18:12:17 +02:00
update-child.pl Bug 5673: test guarantorid consistently 2011-02-03 22:10:24 +13:00