[Koha-bugs] [Bug 25440] Remove undef and CGI warnings and fix template variables list in circulation rules

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue May 19 09:04:50 CEST 2020


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

--- Comment #9 from Andrew Nugged <nugged at gmail.com> ---
(In reply to Jonathan Druart from comment #7)
> > +    my $cap_fine_to_replacement_price = $input->param('cap_fine_to_replacement_price');
> > +    $cap_fine_to_replacement_price = $cap_fine_to_replacement_price && $cap_fine_to_replacement_price eq 'on';
> 
> What about
> 
> cap_fine_to_replacement_price = ($cap_fine_to_replacement_price || '') eq
> 'on';

I just mimicked code style in this same block, but of course (and I also like
that in Perl) we can undef-protect inline if you want. Should I recreate the
patch?

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


More information about the Koha-bugs mailing list