From: dbs Date: Thu, 11 Nov 2010 03:49:31 +0000 (+0000) Subject: Update the edit dates for authority and MFHD records when they are edited X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f0929c7d1cdb72f3a4d05495e92bc9e76ca15c0e;p=evergreen%2Fmasslnc.git 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 --- 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); }