]> git.koha-community.org Git - koha.git/commit
Bug 9484: userid not generated consistently (different editing pages)
authorAdrien Saurat <adrien.saurat@biblibre.com>
Thu, 24 Jan 2013 16:11:31 +0000 (17:11 +0100)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 24 Apr 2013 21:45:54 +0000 (09:45 +1200)
commitc3acf92ac8d105b2a063067a76ec01ed20bbfb0e
treed9db45ede41c76ec9f0b2991fded7e5a771cbad6
parent2f2ec10b467d705c3333e02d61215e6d937e4305
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>
members/memberentry.pl