From 7e2d690340a36e9722633ef3722dc2faca8277bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Kula?= <148193449+miku-orb@users.noreply.github.com> Date: Mon, 19 Jan 2026 14:47:49 +0100 Subject: [PATCH] Bug 41661: Fix circulation stats showing "UNKNOWN VALUE" if itemtype was deleted from database The patch will make it fall back to the raw item code display, instead of showing instances of cryptic "UNKNOWN VALUE". The latter is objectively more useless, while with former the user can deduce what it was and why it's missing. The "UNKNOWN VALUE" would be shown here: https://github.com/Koha-Community/Koha/blame/f21255ca54ac4c774eeb8f4bbd7597ec47edde87/koha-tmpl/intranet-tmpl/prog/en/modules/reports/issues_stats.tt#L155 The fallback is inserted at the end, to allow any of the options to fall back to raw $celvalue (with the recognition that a raw value should always be more useful than a bunch of unknown values). --- reports/issues_stats.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/reports/issues_stats.pl b/reports/issues_stats.pl index 9439eb8aed..af4fc29fd6 100755 --- a/reports/issues_stats.pl +++ b/reports/issues_stats.pl @@ -377,6 +377,7 @@ sub calculate { $cell{rowtitle_display} = $patron_category->description and last; } } + $cell{rowtitle_display} //= $celvalue; push @loopline, \%cell; } -- 2.52.0