From 9f8def1839bd46d6a674760cda65c6b59c571d1a 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 --- Open-ILS/src/eg2/src/app/staff/share/course.service.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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..29edbb5a6b 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 @@ -129,6 +129,7 @@ export class CourseService { } material.creator(this.auth.user().id()); material.editor(material.creator()); + material.edit_time(new Date()); const response = { item: item, material: this.pcrud.create(material).toPromise() @@ -221,8 +222,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