From: Bill Erickson Date: Fri, 3 Apr 2015 17:19:40 +0000 (-0700) Subject: JBAS-216 set editor/edit_date on cat_date change X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a22563747160d92c5bb88ee98544ab53def76a6b;p=working%2FEvergreen.git JBAS-216 set editor/edit_date on cat_date change Signed-off-by: Bill Erickson --- 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