There is a certain class of hold failure events (e.g. HOLD_EXISTS,
HOLD_ITEM_CHECKED_OUT) that can be overridden by patrons when they have
the correct override permission. This change recovers that ability,
which was recently removed with
99e8fc893a.
Signed-off-by: Bill Erickson <berick@esilibrary.com>
$hdata->{could_override} = 1;
$hdata->{age_protect} = 1;
} else {
- $hdata->{could_override} = $result->{place_unfillable};
+ $hdata->{could_override} = $result->{place_unfillable} ||
+ $self->test_could_override($hdata->{hold_failed_event});
}
} elsif (ref $result eq 'ARRAY') {
$hdata->{hold_failed_event} = $result->[0];
$hdata->{could_override} = 1;
$hdata->{age_protect} = 1;
} else {
- $hdata->{could_override} = $result->[4]; # place_unfillable
+ $hdata->{could_override} = $result->[4] || # place_unfillable
+ $self->test_could_override($hdata->{hold_failed_event});
}
}
}