|
Lines 30-43
sub Get {
Link Here
|
| 30 |
$categorycode = undef if $categorycode eq q{}; |
30 |
$categorycode = undef if $categorycode eq q{}; |
| 31 |
$itemtype = undef if $itemtype eq q{}; |
31 |
$itemtype = undef if $itemtype eq q{}; |
| 32 |
|
32 |
|
| 33 |
my $rule = Koha::CirculationRules->search( |
33 |
my $rule = Koha::CirculationRules->get_effective_rule( |
| 34 |
{ |
34 |
{ |
| 35 |
branchcode => $branchcode, |
35 |
branchcode => $branchcode, |
| 36 |
categorycode => $categorycode, |
36 |
categorycode => $categorycode, |
| 37 |
itemtype => $itemtype, |
37 |
itemtype => $itemtype, |
| 38 |
rule_name => $rule_name, |
38 |
rule_name => $rule_name, |
| 39 |
} |
39 |
} |
| 40 |
)->next(); |
40 |
); |
| 41 |
|
41 |
|
| 42 |
return $rule->rule_value if $rule; |
42 |
return $rule->rule_value if $rule; |
| 43 |
} |
43 |
} |
| 44 |
- |
|
|