Bugzilla – Attachment 193490 Details for
Bug 41675
Username value is ignored in Patron quick-add form
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41675: Fix Quick add patron username being overwritten
Bug-41675-Fix-Quick-add-patron-username-being-over.patch (text/plain), 1.81 KB, created by
Slava Shishkin
on 2026-02-19 16:44:30 UTC
(
hide
)
Description:
Bug 41675: Fix Quick add patron username being overwritten
Filename:
MIME Type:
Creator:
Slava Shishkin
Created:
2026-02-19 16:44:30 UTC
Size:
1.81 KB
patch
obsolete
>From 70f4ea3bd187866e8179e7ba96f249fe34494f72 Mon Sep 17 00:00:00 2001 >From: Slava Shishkin <slavashishkin@gmail.com> >Date: Thu, 19 Feb 2026 18:26:54 +0200 >Subject: [PATCH] Bug 41675: Fix Quick add patron username being overwritten > >Test plan: >1. In system preferences, set PatronQuickAddFields to include userid (Username). >2. Go to Patrons and choose Quick add new patron. >3. Fill at least Surname, Card number, and Username > (use a value clearly different from a surname-based username). >4. Save the patron. >5. Observe on the patron details page that Username is auto-generated > (not the value entered in quick add). >6. Apply this patch. >7. Repeat steps 2-4 with a new patron. >8. Verify on the patron details page that Username now matches the value entered in quick add. >--- > .../intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >index 561b0d9aa0a..ee66f808548 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -1770,7 +1770,9 @@ > $(toggle_to+"[for='"+input_label+"']").next().prop('checked', $(this).next().prop('checked') ); > return; > } >- $(toggle_to+"[for='"+input_label+"']").next().val( $(this).next().val() ); >+ var source_input = $(this).nextAll(":input[name]").first(); >+ var target_input = $(toggle_to+"[for='"+input_label+"']").nextAll(":input[name]").first(); >+ target_input.val( source_input.val() ); > }); > > $(".toggler").toggle(); >-- >2.53.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 41675
:
193490
|
193491
|
193543