[Koha-bugs] [Bug 15757] Hard coded due loan/renewal period of 21 days if no circ rule found in C4::Circulation::GetLoanLength

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Apr 7 15:08:47 CEST 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15757

--- Comment #20 from M. Tompsett <mtompset at hotmail.com> ---
Comment on attachment 50015
  --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=50015
Bug 15757: Make issuelength default to null instead of 0

Review of attachment 50015:
 --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=15757&attachment=50015)
-----------------------------------------------------------------

::: admin/smart-rules.pl
@@ +140,4 @@
>      $maxonsiteissueqty =~ s/\s//g;
>      $maxonsiteissueqty = undef if $maxonsiteissueqty !~ /^\d+/;
>      my $issuelength  = $input->param('issuelength');
> +    $issuelength = $issuelength eq q{} ? undef : $issuelength;

Change 142 to:
my $issuelength  = $input->param('issuelength') // q{};
-- to avoid noise triggered when parameter is undef.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list