]> git.koha-community.org Git - koha.git/commit
Bug 27645: Prevent "is on hold" warning to be displayed twice
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 9 Feb 2021 15:01:59 +0000 (16:01 +0100)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Mon, 22 Feb 2021 22:51:26 +0000 (22:51 +0000)
commit1039d11869dae9d0753ae897486cb81e9d5d26f2
tree777dca4336bf527bec92215e9782e331ceceac90
parentc975904ea045422b57556e158a6e1620cba698a5
Bug 27645: Prevent "is on hold" warning to be displayed twice

During a batch checkout we display the "item is on hold" message
depending on different conditions.
However it can happen the message is displayed twice.

If the checkout is not impossible then we see:
This item is on hold for another patron.
This item is on hold for another patron. The hold will be overridden, but not cancelled.

We should only display the second one.

Test plan:
With a default ktd setup you can simply place an item on hold and use the
batch checkout tool to check it out

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 4bb20fdb30202018f1519c6bd336e33fa6732d9e)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 8113778f326570e7953b6485dc7298d829e3bc10)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt