Bugzilla – Attachment 63445 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.36 KB, created by
Nick Clemens (kidclamp)
on 2017-05-12 14:33:54 UTC
(
hide
)
Description:
Bug 18598 - Quick add form doesn't clear values when switching
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2017-05-12 14:33:54 UTC
Size:
1.36 KB
patch
obsolete
>From b1a9476dfaf89e4ec993f016f7be5a73ac05a906 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 12 May 2017 10:32:20 -0400 >Subject: [PATCH] Bug 18598 - Quick add form doesn't clear values when > switching > >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 >--- > koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 3 --- > 1 file changed, 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 ff3ef68..a927e4d 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,6 @@ $(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() ); >- } > }); > > $(".toggler").toggle(); >-- >2.1.4
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