Bugzilla – Attachment 151635 Details for
Bug 33815
Crash when librarian changes their own username in the staff interface
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33815: Add a hint on the patron edit form
Bug-33815-Add-a-hint-on-the-patron-edit-form.patch (text/plain), 1.37 KB, created by
Tomás Cohen Arazi (tcohen)
on 2023-05-24 14:55:41 UTC
(
hide
)
Description:
Bug 33815: Add a hint on the patron edit form
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2023-05-24 14:55:41 UTC
Size:
1.37 KB
patch
obsolete
>From c132343a7afdf0627cd4ab65cf6b49380c9398c6 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 24 May 2023 09:31:05 +0200 >Subject: [PATCH] Bug 33815: Add a hint on the patron edit form > >--- > .../prog/en/modules/members/memberentrygen.tt | 10 ++++++++++ > 1 file changed, 10 insertions(+) > >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 d587f115d7d..35a0778aedf 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -1867,6 +1867,16 @@ legend:hover { > $("#categorycode_entry").on("change", function(){ > update_category_code(this); > }); >+ >+ [% IF logged_in_user.borrowernumber == borrowernumber %] >+ $("#userid").on("change", function(){ >+ $(this).parent().find("div.hint").remove(); >+ if ( "[% borrower_data.userid | html %]" != $(this).val() ) { >+ $(this).parent().append('<div class="hint">%s</div>'.format(_("You will be logged out if you modify your username"))); >+ } >+ }); >+ [% END %] >+ > }); > > [% IF quickadd && opadd && !check_member %] >-- >2.34.1
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 33815
:
151609
|
151610
|
151633
|
151634
|
151635
|
151642
|
151643
|
151715
|
151716