Bugzilla – Attachment 169582 Details for
Bug 37254
Dropdown values not cleared after pressing clear in circulation rules
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37254: Fix clearing of dropdown values on circulation rules
Bug-37254-Fix-clearing-of-dropdown-values-on-circu.patch (text/plain), 1.67 KB, created by
Laura Escamilla
on 2024-07-25 15:50:43 UTC
(
hide
)
Description:
Bug 37254: Fix clearing of dropdown values on circulation rules
Filename:
MIME Type:
Creator:
Laura Escamilla
Created:
2024-07-25 15:50:43 UTC
Size:
1.67 KB
patch
obsolete
>From b88edffee414149e0a4e47c10d7f0dd6b6275986 Mon Sep 17 00:00:00 2001 >From: Emmi Takkinen <emmi.takkinen@koha-suomi.fi> >Date: Thu, 4 Jul 2024 15:04:42 +0300 >Subject: [PATCH] Bug 37254: Fix clearing of dropdown values on circulation > rules > >When one tries to clear the rule they are editing in circulation >rules page via "Clear" button, dropdown selectors aren't populated >with default value (first on the list). > >To reproduce: >1. Select a rule to edit. >2. Press "Clear" button to return edit rows values back to default values. >=> Values in dropdowns aren't set back as default, instead they have >same values as rule you edited before pressing "Clear". >3. Apply this patch. >4. Select rule to edit, then press "Clear". >=> Dropdowns now have default values. > >Sponsored-by: Koha-Suomi Oy >Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> >Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt >index c4943b3407..b21b3351c9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt >@@ -1464,6 +1464,7 @@ > } > }); > $(edit_row).find("select").prop('disabled', false); >+ $(edit_row).find("select option:selected").removeAttr('selected'); > $(edit_row).find("select option:first-child").attr("selected", "selected"); > $(edit_row).find("td:last input[name='clear']").remove(); > } >-- >2.39.2
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 37254
:
168502
|
168522
| 169582