From 5dc771923c94103c893d7089ca1dc77555205015 Mon Sep 17 00:00:00 2001 From: doxulting Date: Wed, 26 Oct 2005 16:37:24 +0000 Subject: [PATCH] It was impossible to add a subfield with value : 0. Was a problem for loan status. --- C4/Biblio.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index 784fc8e93e..4a5d5fc064 100644 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -415,7 +415,7 @@ sub MARCaddsubfield { $tagorder, $subfieldcode, $subfieldorder, $subfieldvalues ) = @_; - return unless $subfieldvalues; + return unless defined($subfieldvalues); # warn "$tagid / $subfieldcode / $subfieldvalues"; # if not value, end of job, we do nothing # if ( length($subfieldvalues) == 0 ) { @@ -2754,6 +2754,9 @@ Paul POULAIN paul.poulain@free.fr # $Id$ # $Log$ +# Revision 1.115.2.24 2005/10/26 16:37:24 doxulting +# It was impossible to add a subfield with value : 0. Was a problem for loan status. +# # Revision 1.115.2.23 2005/09/28 14:35:56 hdl # ordering search results by branch. # Adding independant Branch Management to getBranches in Koha.pm -- 2.39.5