lp1915556 Incorrect Placement for edit_time()
authorKyle Huckins <khuckins@catalyte.io>
Tue, 22 Mar 2022 19:31:33 +0000 (19:31 +0000)
committerKyle Huckins <khuckins@catalyte.io>
Tue, 22 Mar 2022 19:31:33 +0000 (19:31 +0000)
- edit_time() setting changed to affect the course material, not the copy

Signed-off-by: Kyle Huckins <khuckins@catalyte.io>
Open-ILS/src/eg2/src/app/staff/share/course.service.ts

index 14a3acc..29edbb5 100644 (file)
@@ -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();