Browse Source

Bug 24026: (bug 22847 follow-up) Remove c/p issues

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
tags/v19.11.00
parent
commit
4ad2bedb97
Signed by: martin.renvoize <martin.renvoize@ptfs-europe.com> GPG Key ID: 422B469130441A0F
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      Koha/Template/Plugin/CirculationRules.pm

+ 4
- 4
Koha/Template/Plugin/CirculationRules.pm View File

@@ -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(
{


Loading…
Cancel
Save