This may be due to bug 24279? When editing an item via additem.pl, koha defaults to the first available lost status, rather than defaulting to not-lost. This will make a big mess if not addressed quickly.
Created attachment 107520 [details] [review] 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!
Created attachment 107521 [details] [review] 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 <andrew@bywatersolutions.com>
Created attachment 107540 [details] [review] 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 <andrew@bywatersolutions.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Looks like this bug may also be causing some foreign key constraint errors around branch code when duplicating an existing item and trying to change the home and holding branch. The error goes away when I apply the patch. So nothing more to do here, just noting it.
Pushed to master for 20.11, thanks to everybody involved!
missing dependency for 20.05.x, no backport