Bugzilla – Attachment 63638 Details for
Bug 18598
Quick add form doesn't clear values when switching
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18598 - Quick add form doesn't clear values when switching
Bug-18598---Quick-add-form-doesnt-clear-values-whe.patch (text/plain), 1.68 KB, created by
Jonathan Druart
on 2017-05-22 19:15:01 UTC
(
hide
)
Description:
Bug 18598 - Quick add form doesn't clear values when switching
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-05-22 19:15:01 UTC
Size:
1.68 KB
patch
obsolete
>From a3acd06f853fd345fb0f33a1a5e67e83bcafdc4e Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 18 May 2017 22:00:44 -0400 >Subject: [PATCH] Bug 18598 - Quick add form doesn't clear values when > switching >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >To test: >1 - Fill out some fields in quick add >2 - Switch to full form and clear fields >3 - Switch back and fields are still populated >4 - Fill a field in long form >5 - Switch to quick add and clear it >6 - Save >7 - Value set in 4 is saved >8 - Apply patch >9 - Repeat 1-6 - values should be cleared and not saved > >Signed-off-by: Marc Véron <veron@veron.ch> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 4 +--- > 1 file changed, 1 insertion(+), 3 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 5045714672..2ddf57de3d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -56,9 +56,7 @@ $(document).ready(function() { > $(toggle_to+"[for='"+input_label+"']").next().prop('checked', $(this).next().prop('checked') ); > return; > } >- if( $(this).next().val() != '' ) { >- $(toggle_to+"[for='"+input_label+"']").next().val( $(this).next().val() ); >- } >+ $(toggle_to+"[for='"+input_label+"']").next().val( $(this).next().val() ); > }); > > $(".toggler").toggle(); >-- >2.11.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 18598
:
63445
|
63554
|
63556
| 63638