Bugzilla – Attachment 110687 Details for
Bug 26529
Holds rules enforced incorrectly when not set at library level
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26529: Consider blank rules as undef for default hold policies
Bug-26529-Consider-blank-rules-as-undef-for-defaul.patch (text/plain), 1.41 KB, created by
Nick Clemens (kidclamp)
on 2020-09-24 18:13:43 UTC
(
hide
)
Description:
Bug 26529: Consider blank rules as undef for default hold policies
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2020-09-24 18:13:43 UTC
Size:
1.41 KB
patch
obsolete
>From 51f3ae2fd26201e5845621cd6d264d4e9442fc9a Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 24 Sep 2020 18:12:51 +0000 >Subject: [PATCH] Bug 26529: Consider blank rules as undef for default hold > policies > >--- > admin/smart-rules.pl | 8 +++----- > 1 file changed, 3 insertions(+), 5 deletions(-) > >diff --git a/admin/smart-rules.pl b/admin/smart-rules.pl >index 4a4727e5c2..51bfb667b2 100755 >--- a/admin/smart-rules.pl >+++ b/admin/smart-rules.pl >@@ -337,12 +337,10 @@ elsif ($op eq "set-branch-defaults") { > my $patron_maxissueqty = strip_non_numeric( scalar $input->param('patron_maxissueqty') ); > my $patron_maxonsiteissueqty = $input->param('patron_maxonsiteissueqty'); > $patron_maxonsiteissueqty = strip_non_numeric($patron_maxonsiteissueqty); >- my $holdallowed = $input->param('holdallowed'); >- my $hold_fulfillment_policy = $input->param('hold_fulfillment_policy'); >- my $returnbranch = $input->param('returnbranch'); >+ my $holdallowed = $input->param('holdallowed') || undef; >+ my $hold_fulfillment_policy = $input->param('hold_fulfillment_policy') || undef; >+ my $returnbranch = $input->param('returnbranch') || undef; > my $max_holds = strip_non_numeric( scalar $input->param('max_holds') ); >- $holdallowed =~ s/\s//g; >- $holdallowed = undef if $holdallowed !~ /^\d+/; > > if ($branch eq "*") { > Koha::CirculationRules->set_rules( >-- >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 26529
:
110686
|
110687
|
110695
|
110714
|
110715
|
110856
|
110857
|
110859
|
111251
|
111252
|
111253
|
111382
|
111471
|
111511