View | Details | Raw Unified | Return to bug 32092
Collapse All | Expand All

(-)a/Koha/Patron.pm (-4 / +3 lines)
Lines 1256-1270 sub article_request_fee { Link Here
1256
1256
1257
    $library_id //= C4::Context->userenv ? C4::Context->userenv->{'branch'} : undef;
1257
    $library_id //= C4::Context->userenv ? C4::Context->userenv->{'branch'} : undef;
1258
1258
1259
    my $fee = Koha::CirculationRules->get_effective_rule_value(
1259
    my $value = Koha::CirculationRules->get_effective_rule_value(
1260
        {
1260
        {
1261
            branchcode   => $library_id,
1261
            branchcode   => $library_id,
1262
            categorycode => $self->categorycode,
1262
            categorycode => $self->categorycode,
1263
            rule_name    => 'article_request_fee'
1263
            rule_name    => 'article_request_fee'
1264
        }
1264
        }
1265
    ) + 0;
1265
    );
1266
1266
1267
    return $fee;
1267
    return $value ? $value + 0 : 0;
1268
}
1268
}
1269
1269
1270
=head3 add_article_request_fee_if_needed
1270
=head3 add_article_request_fee_if_needed
1271
- 

Return to bug 32092