[Koha-patches] Spam [PATCH 7/7] Bug 5166 - Fix as of Bug 5724 [SIGNED-OFF]
conan (aka Fernando L. Canizo)
conan at lugmen.org.ar
Tue May 3 16:33:55 CEST 2011
From: Tomas Cohen Arazi <tomascohen at gmail.com>
As noted in Bug 5724, deletions should be processed AFTER updates, so an late update doesn't
reinsert the deleted record.
To+
Signed-off-by: conan (aka Fernando L. Canizo) <conan at lugmen.org.ar>
---
C4/Catalog/Zebra.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/C4/Catalog/Zebra.pm b/C4/Catalog/Zebra.pm
index 9c7dc4e..a96d2f4 100644
--- a/C4/Catalog/Zebra.pm
+++ b/C4/Catalog/Zebra.pm
@@ -125,8 +125,8 @@ sub IndexZebraqueueRecords
my ($num_records_updated,$num_records_deleted);
- $num_records_deleted = (IndexZebraqueueByAction('deleted',$record_type,$record_format,$as_xml,$noxml)||0);
$num_records_updated = (IndexZebraqueueByAction('updated',$record_type,$record_format,$as_xml,$noxml)||0);
+ $num_records_deleted = (IndexZebraqueueByAction('deleted',$record_type,$record_format,$as_xml,$noxml)||0);
return $num_records_deleted + $num_records_updated;
}
--
1.7.2.5
More information about the Koha-patches
mailing list