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 20:51:41 +0000 (20:51 +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/admin/local/course-reserves/course-associate-material.component.ts
Open-ILS/src/eg2/src/app/staff/share/course.service.ts

index 9a8264c..31da01a 100644 (file)
@@ -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()));
index 14a3acc..57752dc 100644 (file)
@@ -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();