Bugzilla – Attachment 168051 Details for
Bug 31610
When creating a guarantee, patron messaging preferences should be copied to this account from the category
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31610: Set messaging preferences only on "add_form"
Bug-31610-Set-messaging-preferences-only-on-addfor.patch (text/plain), 1.35 KB, created by
Julian Maurice
on 2024-06-25 07:42:12 UTC
(
hide
)
Description:
Bug 31610: Set messaging preferences only on "add_form"
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2024-06-25 07:42:12 UTC
Size:
1.35 KB
patch
obsolete
>From f64b728b3194823fc8af12dc21bfa4567d70b7a6 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Tue, 25 Jun 2024 09:41:58 +0200 >Subject: [PATCH] Bug 31610: Set messaging preferences only on "add_form" > >--- > .../intranet-tmpl/prog/js/messaging-preference-form.js | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/messaging-preference-form.js b/koha-tmpl/intranet-tmpl/prog/js/messaging-preference-form.js >index 8f311fa353..a63bd3feaa 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/messaging-preference-form.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/messaging-preference-form.js >@@ -10,9 +10,13 @@ $(document).ready(function(){ > message_prefs_dirty = true; // unless op=add consider the message prefs dirty > } > >- if( $("#messaging_prefs_loading").length ){ // This element only appears in the template if op=add >+ if ( $("#messaging_prefs_loading").length ) { > $('#categorycode_entry').change(() => { update_messaging_prefs() }); >- update_messaging_prefs(); >+ >+ const searchParams = new URLSearchParams(location.search); >+ if (searchParams.has('op', 'add_form')) { >+ update_messaging_prefs(); >+ } > > function update_messaging_prefs () { > var messaging_prefs_loading = $("#messaging_prefs_loading"); >-- >2.30.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 31610
:
161595
|
168051
|
171427
|
171428