JBAS-944 vandelay.overlay_bib_record always set edit_date
authorBill Erickson <berickxx@gmail.com>
Mon, 26 Oct 2015 16:26:03 +0000 (12:26 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
KCLS/sql/schema/deploy/2.5-to-2.7-upgrade.sql

index a31a7c6..ffa2c78 100644 (file)
@@ -8339,10 +8339,17 @@ BEGIN
 
             IF editor_id IS NOT NULL THEN
                 --only update the edit date if we have a valid editor
-                update_fields := ARRAY_APPEND(update_fields, 'editor = ' || editor_id || ', edit_date = NOW()');
+                -- KCLS always wants edit_date to be updated
+                -- update_fields := ARRAY_APPEND(update_fields, 'editor = ' || editor_id || ', edit_date = NOW()');
+                update_fields := ARRAY_APPEND(update_fields, 'editor = ' || editor_id);
+                -- /KCLS
             END IF;
         END IF;
 
+        -- KCLS always wants edit_date to be updated
+        update_fields := ARRAY_APPEND(update_fields, 'edit_date = NOW()');
+        -- /KCLS
+
         IF v_bib_source IS NOT NULL THEN
             update_fields := ARRAY_APPEND(update_fields, 'source = ' || v_bib_source);
         END IF;