Bugzilla – Attachment 119454 Details for
Bug 27069
Change holdallowed values from numbers to strings
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27069: (follow-up) Only display rules if one is set
Bug-27069-follow-up-Only-display-rules-if-one-is-s.patch (text/plain), 1.83 KB, created by
Nick Clemens (kidclamp)
on 2021-04-12 13:26:06 UTC
(
hide
)
Description:
Bug 27069: (follow-up) Only display rules if one is set
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2021-04-12 13:26:06 UTC
Size:
1.83 KB
patch
obsolete
>From 7ca8b99e0020ba440cbe80a026307638b79047f7 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Mon, 12 Apr 2021 13:22:50 +0000 >Subject: [PATCH] Bug 27069: (follow-up) Only display rules if one is set > >Testing that the rule is != 'hold_allowed' is true for each itemtype where >the rule is not set. This means it appears that no holds are allowed >for any item type if no rules are set > >To test: >1 - With a fresh testing DB or no holdallowed rule set, you can use SQl below to clear: > DELETE from circuation_rules WHERE rule_name='holdallowed'; >2 - Load smart-rules.pl (Administration->Circulation and fines rules) >3 - Scroll to "Default holds policy by item type" >4 - Note all item types appear as 'No holds allowed' >5 - Apply patch >6 - Reload >7 - All clear >8 - Confirm adding rules displays correctly >--- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >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 590c9a8d67..79a87ae164 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 >@@ -916,7 +916,7 @@ > [% SET hold_fulfillment_policy = CirculationRules.Search( branchcode, undef, i.itemtype, 'hold_fulfillment_policy' ) %] > [% SET returnbranch = CirculationRules.Search( branchcode, undef, i.itemtype, 'returnbranch' ) %] > >- [% IF holdallowed != 'not_allowed' || hold_fulfillment_policy || returnbranch %] >+ [% IF holdallowed || hold_fulfillment_policy || returnbranch %] > <tr> > <td> > [% i.translated_description | html %] >-- >2.11.0
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 27069
:
118252
|
118253
|
118254
|
118324
|
118325
|
118326
|
119223
|
119224
|
119225
| 119454