Lines 61-68
$data->{branchcode} = $branchcode;
Link Here
|
61 |
( $data->{renew_okay}, $data->{error} ) = |
61 |
( $data->{renew_okay}, $data->{error} ) = |
62 |
CanBookBeRenewed( $borrowernumber, $itemnumber, $override_limit ); |
62 |
CanBookBeRenewed( $borrowernumber, $itemnumber, $override_limit ); |
63 |
|
63 |
|
|
|
64 |
my $override = |
65 |
$data->{error} |
66 |
&& $data->{error} eq 'on_reserve' |
67 |
&& C4::Context->preference('AllowRenewalOnHoldOverride'); |
68 |
|
69 |
$override ||= |
70 |
$data->{error} |
71 |
&& $data->{error} eq 'item_denied_renewal' |
72 |
&& C4::Context->preference('AllowRenewalLimitOverride'); |
73 |
|
64 |
# If we're allowing reserved items to be renewed... |
74 |
# If we're allowing reserved items to be renewed... |
65 |
if ( $data->{error} && $data->{error} eq 'on_reserve' && C4::Context->preference('AllowRenewalOnHoldOverride')) { |
75 |
if ( $override ) { |
66 |
$data->{renew_okay} = 1; |
76 |
$data->{renew_okay} = 1; |
67 |
$data->{error} = undef; |
77 |
$data->{error} = undef; |
68 |
} |
78 |
} |
69 |
- |
|
|