Bug 25583: Disable the "claim returned" button if the feature is disabled
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 20 Nov 2020 08:18:26 +0000 (09:18 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 10 Dec 2020 10:35:07 +0000 (11:35 +0100)
commit188461bdfe00de99886e1a6e865f8a394f35e279
tree13ccd12ce4786810ee3c7424cc3a2cfd0839697b
parent3b8144a1aa19ff3ba92eea26492b192b17807e3f
Bug 25583: Disable the "claim returned" button if the feature is disabled

It's possible to display the "Return claims" column on the checkout
list, even if the feature is disabled.
We should disable the link and add an explanation.

Test plan:
- Make sure ClaimReturnedLostValue is empty
- Go to a patron account
- Check out an item
- Make the claims returned column visible in the table of checkouts
=> The button is disabled and a tooltip explains that the feature is
disabled

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 3ae3981d3c881bbbd136015ae94e91961236d15e)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/js/checkouts.js