From f0929c7d1cdb72f3a4d05495e92bc9e76ca15c0e Mon Sep 17 00:00:00 2001 From: dbs Date: Thu, 11 Nov 2010 03:49:31 +0000 Subject: [PATCH] Update the edit dates for authority and MFHD records when they are edited Addresses the oversight in the original implementation that missed this; important if we're going to differentiate between creating and editing a record for triggers. git-svn-id: svn://svn.open-ils.org/ILS/trunk@18695 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/ui/default/cat/authority/list.js | 1 + Open-ILS/web/opac/skin/default/js/rdetail.js | 1 + 2 files changed, 2 insertions(+) diff --git a/Open-ILS/web/js/ui/default/cat/authority/list.js b/Open-ILS/web/js/ui/default/cat/authority/list.js index 9408b4db01..43d4511822 100644 --- a/Open-ILS/web/js/ui/default/cat/authority/list.js +++ b/Open-ILS/web/js/ui/default/cat/authority/list.js @@ -153,6 +153,7 @@ function loadMarcEditor(pcrud, rec) { "label": "Save", "func": function(xmlString) { rec.marc(xmlString); + rec.edit_date('now'); rec.ischanged(true); pcrud.update(rec); alert("Record was saved"); diff --git a/Open-ILS/web/opac/skin/default/js/rdetail.js b/Open-ILS/web/opac/skin/default/js/rdetail.js index 34981fc3cd..e239098053 100644 --- a/Open-ILS/web/opac/skin/default/js/rdetail.js +++ b/Open-ILS/web/opac/skin/default/js/rdetail.js @@ -250,6 +250,7 @@ function OpenMarcEditWindow(pcrud, rec) { "label": opac_strings.SAVE_MFHD_LABEL, "func": function(xmlString) { rec.marc(xmlString); + rec.edit_date('now'); rec.ischanged(true); pcrud.update(rec); } -- 2.11.0