has the skipping of reingest only happen when the marc is unchanged and the old marc... user/rogan/lp_1091885_reingest_on_undelete
authorRogan Hamby <rogan.hamby@gmail.com>
Fri, 9 Mar 2018 17:20:30 +0000 (12:20 -0500)
committerRogan Hamby <rogan.hamby@gmail.com>
Fri, 9 Mar 2018 17:20:30 +0000 (12:20 -0500)
Open-ILS/src/sql/Pg/030.schema.metabib.sql

index bc72c89..dab8316 100644 (file)
@@ -1870,7 +1870,7 @@ BEGIN
         RETURN NEW; -- and we're done
     END IF;
 
-    IF TG_OP = 'UPDATE' THEN -- re-ingest?
+    IF TG_OP = 'UPDATE' AND OLD.deleted IS FALSE THEN -- re-ingest?
         PERFORM * FROM config.internal_flag WHERE name = 'ingest.reingest.force_on_same_marc' AND enabled;
 
         IF NOT FOUND AND OLD.marc = NEW.marc THEN -- don't do anything if the MARC didn't change