Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
digibib
deichman
Commits
3f628573
Commit
3f628573
authored
Jun 10, 2021
by
Petter Goksøyr Åsen
Committed by
Petter Goksøyr Åsen
Jun 11, 2021
Browse files
DEICH-5950
canItemBeRenewed: fix number of holds vs available items check
parent
72a9a8ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
koha/Core/Circulation.pm
View file @
3f628573
...
...
@@ -880,7 +880,7 @@ sub canItemBeRenewed {
if
(
$self
->
Deichman::Item::
CanItemFillHold
())
{
my
$ignoreFound
=
1
;
try
{
$self
->
Deichman::Item::
GetBiblioReserves
(
$ignoreFound
)
};
if
(
scalar
@
{
$self
->
{
biblioHolds
}}
>
$self
->
Deichman::Item::
AvailableItemsCount
())
{
if
(
scalar
@
{
$self
->
{
biblioHolds
}}
>
=
$self
->
Deichman::Item::
AvailableItemsCount
())
{
$self
->
{
error
}
=
Core::Exception::Circulation::
RenewErrorWithMessage
->
new
("
on_hold
");
return
$self
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment