From 3ae472ba5d9b7bfe6c6e44320ca020c9cf111b01 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 29 Jul 2020 13:03:57 -0400 Subject: [PATCH] Bug 26083: Item editor defaults to lost When editing an item via additem.pl, koha defaults to the first available lost status, rather than defaulting to not-lost. Test Plan: 1) Ensure you do not have a value ClaimReturnedLostValue 2) Edit an existing item that is not lost 3) Note the lost value is set even though it is not lost 4) Apply this patch 5) Edit a different item that is not lost 6) Note the lost value is not set! Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt index 19ce9aa9f4..051695788c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt @@ -166,7 +166,7 @@ [% IF aval == mv.default %] [% ELSE %] - [% IF ite.IS_LOST_AV && aval == Koha.Preference("ClaimReturnedLostValue") %] + [% IF ite.IS_LOST_AV && Koha.Preference("ClaimReturnedLostValue") && aval == Koha.Preference("ClaimReturnedLostValue") %] [% ELSE %] -- 2.39.5