From 5b15db127e7ceef2afca7e5c995d89ba0e8dc4bd Mon Sep 17 00:00:00 2001 From: tipaul Date: Wed, 13 Sep 2006 14:30:31 +0000 Subject: [PATCH] oups... homebranch & holdingbranch modifications where just in an improper {} : should be done everytime (not only when item is lost) Fixes bug #1163 --- C4/Biblio.pm | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index 23e3128311..413412d47a 100644 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -2012,14 +2012,14 @@ sub OLDmoditem { $item->{multivolume}, $item->{stack}, $item->{wthdrawn}, ); - if ($item->{homebranch}) { - $query.=",homebranch=?"; - push @bind, $item->{homebranch}; - } - if ($item->{holdingbranch}) { - $query.=",holdingbranch=?"; - push @bind, $item->{holdingbranch}; - } + } + if ($item->{homebranch}) { + $query.=",homebranch=?"; + push @bind, $item->{homebranch}; + } + if ($item->{holdingbranch}) { + $query.=",holdingbranch=?"; + push @bind, $item->{holdingbranch}; } $query.=" where itemnumber=?"; push @bind,$item->{'itemnum'}; @@ -3017,6 +3017,12 @@ Paul POULAIN paul.poulain@free.fr # $Id$ # $Log$ +# Revision 1.115.2.61 2006/09/13 14:30:31 tipaul +# oups... +# homebranch & holdingbranch modifications where just in an improper {} : should be done everytime (not only when item is lost) +# +# Fixes bug #1163 +# # Revision 1.115.2.60 2006/08/04 15:00:50 kados # fix for bug 1139: ISBN search fails with double dashes #