From: Jane Sandberg Date: Tue, 1 Sep 2020 16:19:35 +0000 (-0700) Subject: LP1849212: improve fleshing in course service X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=659f3f18ef42f39260350ba7c01a29284e0de4e7;p=evergreen%2Fmasslnc.git LP1849212: improve fleshing in course service Signed-off-by: Jane Sandberg Signed-off-by: Michele Morgan Signed-off-by: Galen Charlton --- 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 7443a79c2d..c3e480da41 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 @@ -28,14 +28,15 @@ export class CourseService { }); } getCourses(course_ids?: Number[]): Promise { + const flesher = {flesh: 2, flesh_fields: { + 'acmc': ['owning_lib'], + 'aou': ['ou_type']}}; if (!course_ids) { return this.pcrud.retrieveAll('acmc', - {flesh: 1, flesh_fields: {'acmc': ['owning_lib']}}, - {atomic: true}).toPromise(); + flesher, {atomic: true}).toPromise(); } else { return this.pcrud.search('acmc', {id: course_ids}, - {flesh: 1, flesh_fields: {'acmc': ['owning_lib']}}, - {atomic: true}).toPromise(); + flesher, {atomic: true}).toPromise(); } }