Bugzilla – Attachment 168502 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
0001-Bug-37254-Fix-clearing-of-dropdown-values-on-circula.patch (text/plain), 1.55 KB, created by
Emmi Takkinen
on 2024-07-04 12:09:31 UTC
(
hide
)
Description:
Bug 37254: Fix clearing of dropdown values on circulation rules
Filename:
MIME Type:
Creator:
Emmi Takkinen
Created:
2024-07-04 12:09:31 UTC
Size:
1.55 KB
patch
obsolete
>From f5090313b6ee2e3eac8a41f0576b10db17dd9942 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 >--- > 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 960854b831..15024a8a54 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.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 37254
:
168502
|
168522
|
169582