From c33f25848b1e72059ed5723df269bd9cfc08b367 Mon Sep 17 00:00:00 2001 From: Kyle Huckins Date: Tue, 22 Mar 2022 19:31:33 +0000 Subject: [PATCH] lp1915556 Incorrect Placement for edit_time() - edit_time() setting changed to affect the course material, not the copy Signed-off-by: Kyle Huckins --- .../admin/local/course-reserves/course-associate-material.component.ts | 1 + Open-ILS/src/eg2/src/app/staff/share/course.service.ts | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-associate-material.component.ts b/Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-associate-material.component.ts index 9a8264cb8e..31da01a6ef 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-associate-material.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-associate-material.component.ts @@ -124,6 +124,7 @@ export class CourseAssociateMaterialComponent extends DialogComponent implements // Edit each IDL thing one at a time const editOneThing = (item: IdlObject) => { if (!item) { return; } + item.edit_date(new Date().toISOString); this.showEditDialog(item).then( () => editOneThing(itemFields.shift())); diff --git a/Open-ILS/src/eg2/src/app/staff/share/course.service.ts b/Open-ILS/src/eg2/src/app/staff/share/course.service.ts index 14a3acc4ed..57752dc027 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/course.service.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/course.service.ts @@ -221,8 +221,6 @@ export class CourseService { updateItem(item: IdlObject, courseLib, callNumber, updatingVolume) { return new Promise((resolve, reject) => { this.pcrud.update(item).subscribe(() => { - item.editor(this.auth.user().id()); - item.edit_time(new Date()); if (updatingVolume) { const cn = item.call_number(); const callNumberLibrary = this.org.canHaveVolumes(courseLib) ? courseLib.id() : cn.owning_lib(); -- 2.11.0