From a22563747160d92c5bb88ee98544ab53def76a6b Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 3 Apr 2015 10:19:40 -0700 Subject: [PATCH] JBAS-216 set editor/edit_date on cat_date change Signed-off-by: Bill Erickson --- Open-ILS/xul/staff_client/server/cat/marcedit.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/cat/marcedit.js b/Open-ILS/xul/staff_client/server/cat/marcedit.js index 600fb9eb45..9a50e317d0 100644 --- a/Open-ILS/xul/staff_client/server/cat/marcedit.js +++ b/Open-ILS/xul/staff_client/server/cat/marcedit.js @@ -2435,7 +2435,8 @@ function updateCatDate() { var originalCatDate = new Date(current_bib.cataloging_date()); if (originalCatDate.getDate() != catDate.getDate() || originalCatDate.getMonth() != catDate.getMonth() || originalCatDate.getFullYear() != catDate.getFullYear()) { current_bib.cataloging_date(catDate.getFullYear() + "-" + (catDate.getMonth() + 1) + "-" + catDate.getDate()); - current_bib.ischanged = true; + current_bib.editor(ses('staff_id')); + current_bib.edit_date('now'); pcrud.update(current_bib); dojo.byId('cat-date-button').disabled = true; dojo.byId('clear-cat-date-button').disabled = false; @@ -2479,6 +2480,8 @@ function clearCatDate() { if (current_bib.cataloging_date() === null) return; current_bib.cataloging_date(null); + current_bib.editor(ses('staff_id')); + current_bib.edit_date('now'); pcrud.update(current_bib); // set the UI back to the today -- 2.11.0