From 33349093cbc24f3d134a670de1443a5c4422e7de Mon Sep 17 00:00:00 2001 From: Mason James Date: Thu, 6 Dec 2007 00:49:50 -0600 Subject: [PATCH] fix for ModZebra() trying to delete an existing bib - that doesnt exist, during an add. Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- C4/Biblio.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index 83ddd6dc75..966343d163 100755 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -3084,8 +3084,10 @@ sub ModZebra { } if ($op eq 'specialUpdate') { # OK, we have to add or update the record - # 1st delete (virtually, in indexes) ... - %result = _DelBiblioNoZebra($biblionumber,$record,$server); + # 1st delete (virtually, in indexes), if record actually exists + if ($record) { + %result = _DelBiblioNoZebra($biblionumber,$record,$server); + } # ... add the record %result=_AddBiblioNoZebra($biblionumber,$newRecord, $server, %result); } else { -- 2.39.5