Bugzilla – Attachment 140809 Details for
Bug 31497
Quick add: mandatory fields save as empty when not filled in before first save attempt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31497: (follow-up) Expand ID suffix, fix password2, remove debug
Bug-31497-follow-up-Expand-ID-suffix-fix-password2.patch (text/plain), 2.52 KB, created by
Chris Cormack
on 2022-09-20 21:38:54 UTC
(
hide
)
Description:
Bug 31497: (follow-up) Expand ID suffix, fix password2, remove debug
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2022-09-20 21:38:54 UTC
Size:
2.52 KB
patch
obsolete
>From c9a5ea87738ebc4db0d5ba9550a3f71c8d6a10ca Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 16 Sep 2022 11:06:17 +0000 >Subject: [PATCH] Bug 31497: (follow-up) Expand ID suffix, fix password2, > remove debug > >Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> >--- > .../prog/en/modules/members/memberentrygen.tt | 12 ++++++++---- > 1 file changed, 8 insertions(+), 4 deletions(-) > >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 2b9e1f472f..2235b4c325 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -1841,17 +1841,21 @@ legend:hover { > let new_field = orig_li.clone(); > new_field.children('label').each(function(){ > let child_input = $(this).children('input'); >- child_input.attr("id",child_input.attr("id") + "_qa"); >+ child_input.attr("id",child_input.attr("id") + "_quick_add"); > }); > new_field.appendTo("#quick_add_list"); > } else { > let orig_input_id = orig_li.children("input,textarea,select").attr("id"); >- console.log( orig_input_id); > let new_field = orig_li.clone(); >- new_field.children("#"+orig_input_id).attr("id",orig_input_id + "_qa"); >+ new_field.children("#"+orig_input_id).attr("id",orig_input_id + "_quick_add"); > new_field.appendTo("#quick_add_list"); > [% UNLESS mandatorypassword %] >- if( input_label == 'password' ) $("#entryform label[for='password2']").parent().clone().appendTo("#quick_add_list"); >+ if( input_label == 'password' ){ >+ let orig_p2 = $("#entryform label[for='password2']").parent(); >+ let new_p2 = orig_p2.clone(); >+ new_p2.find('input[id="password2"]').attr("id","password2_quick_add"); >+ new_p2.appendTo("#quick_add_list"); >+ } > [% END %] > } > } >-- >2.20.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 31497
:
140568
|
140603
|
140606
|
140703
|
140808
| 140809