Bugzilla – Attachment 168494 Details for
Bug 37255
Creating default waiting hold cancellation policy for all patron categories and itemtypes breaks Koha
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37255: Fix handling of "All" values on waiting hold cancellation policy
0001-Bug-37255-Fix-handling-of-All-values-on-waiting-hold.patch (text/plain), 2.36 KB, created by
Emmi Takkinen
on 2024-07-04 11:51:01 UTC
(
hide
)
Description:
Bug 37255: Fix handling of "All" values on waiting hold cancellation policy
Filename:
MIME Type:
Creator:
Emmi Takkinen
Created:
2024-07-04 11:51:01 UTC
Size:
2.36 KB
patch
obsolete
>From b50946b29aa7183bd42b51372b17079b752bc952 Mon Sep 17 00:00:00 2001 >From: Emmi Takkinen <emmi.takkinen@koha-suomi.fi> >Date: Thu, 4 Jul 2024 14:23:31 +0300 >Subject: [PATCH] Bug 37255: Fix handling of "All" values on waiting hold > cancellation policy > >If one creates a default waiting hold cancellation policy with >patron categories set as "All" and itemtype set as "All", Koha >breaks on 500 error. This happens because in we try to match >template policy with "All" values either in category or itemtype >with *, not undef. This patch fixes this. > >To test: >1. Create a new default waiting hold cancellation policy and >set both patron category and itemtype as "All". >2. Save policy. >=> Error page for error 500 is displayed. >3. Apply this patch. >4. Reload page. >=> Page is displayed and policy listing displays new policy >as it should. > >Sponsored-by: Koha-Suomi Oy >--- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >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..d786284c3e 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 >@@ -909,14 +909,14 @@ > [% IF ( waiting_hold_cancellation.defined && waiting_hold_cancellation != '' ) %] > <tr> > <td> >- [% IF c == '*' %] >+ [% IF c == undef %] > <em>All</em> > [% ELSE %] > [% Categories.GetName(c) | html %] > [% END %] > </td> > <td> >- [% IF i == '*' %] >+ [% IF i == undef %] > <em>All</em> > [% ELSE %] > [% ItemTypes.GetDescription(i,1) | html %] >-- >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 37255
:
168494
|
168524
|
168552