From 4ad2bedb97712b4d574d6779ceff9753558c1db0 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 13 Nov 2019 12:35:39 +0100 Subject: [PATCH] Bug 24026: (bug 22847 follow-up) Remove c/p issues Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize --- Koha/Template/Plugin/CirculationRules.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Koha/Template/Plugin/CirculationRules.pm b/Koha/Template/Plugin/CirculationRules.pm index 04587d4d51..e82dce01ed 100644 --- a/Koha/Template/Plugin/CirculationRules.pm +++ b/Koha/Template/Plugin/CirculationRules.pm @@ -27,8 +27,8 @@ sub Get { my ( $self, $branchcode, $categorycode, $itemtype, $rule_name ) = @_; $branchcode = undef if $branchcode eq q{} or $branchcode eq q{*}; - $categorycode = undef if $categorycode eq q{} or $branchcode eq q{*}; - $itemtype = undef if $itemtype eq q{} or $branchcode eq q{*}; + $categorycode = undef if $categorycode eq q{} or $categorycode eq q{*}; + $itemtype = undef if $itemtype eq q{} or $itemtype eq q{*}; my $rule = Koha::CirculationRules->get_effective_rule( { @@ -46,8 +46,8 @@ sub Search { my ( $self, $branchcode, $categorycode, $itemtype, $rule_name ) = @_; $branchcode = undef if $branchcode eq q{} or $branchcode eq q{*}; - $categorycode = undef if $categorycode eq q{} or $branchcode eq q{*}; - $itemtype = undef if $itemtype eq q{} or $branchcode eq q{*}; + $categorycode = undef if $categorycode eq q{} or $categorycode eq q{*}; + $itemtype = undef if $itemtype eq q{} or $itemtype eq q{*}; my $rule = Koha::CirculationRules->search( { -- 2.20.1