From dea8389e48aeba0a638ef9ada373ecb8b7be5cc2 Mon Sep 17 00:00:00 2001 From: Michele Morgan Date: Tue, 30 Mar 2021 20:16:59 +0000 Subject: [PATCH] LP#1917809 Create Course: Owning Library Default Changes the default for the owning library in the Create Course modal to the logged in user's workstation org unit instead of the consortium. Signed-off-by: Michele Morgan Signed-off-by: Christine Burns Signed-off-by: Galen Charlton --- .../admin/local/course-reserves/course-list.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-list.component.ts b/Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-list.component.ts index 3c6a3e65c4..2ba9d400b9 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-list.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-list.component.ts @@ -129,8 +129,10 @@ export class CourseListComponent implements OnInit, AfterViewInit { createNew() { this.editDialog.mode = 'create'; + const course_module_course = this.idl.create('acmc'); + course_module_course.owning_lib(this.auth.user().ws_ou()); this.editDialog.recordId = null; - this.editDialog.record = null; + this.editDialog.record = course_module_course; this.editDialog.open({size: this.dialog_size}).subscribe( ok => { this.createString.current() -- 2.43.2