From 1642dbe0e826fc5343c32cc589834cbf23794f4a Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Mon, 10 Dec 2012 12:23:09 +0100 Subject: [PATCH] Bug 7678: Adds extended patron attributes in patron reports Fix bug that prevented zero values to be shown in the results. Signed-off-by: Kyle M Hall Signed-off-by: Katrin Fischer Fixes the problem with differentiating 0 and NULL values. Passes all tests. Signed-off-by: Jared Camins-Esakov --- reports/borrowers_stats.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reports/borrowers_stats.pl b/reports/borrowers_stats.pl index eca9b3abc2..9454fc5b06 100755 --- a/reports/borrowers_stats.pl +++ b/reports/borrowers_stats.pl @@ -354,7 +354,7 @@ sub calculate { $sth2->execute(@strparams2); while (my ($celvalue) = $sth2->fetchrow) { my %cell; - if ($celvalue) { + if (defined $celvalue) { $cell{coltitle} = $celvalue; # $cell{coltitle_display} = ($colfield eq 'branchcode') ? $branches->{$celvalue}->{branchname} : $celvalue; $cell{coltitle_display} = $cathash{$celvalue} if ($column eq 'categorycode'); -- 2.39.5