From 659f3f18ef42f39260350ba7c01a29284e0de4e7 Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Tue, 1 Sep 2020 09:19:35 -0700 Subject: [PATCH] LP1849212: improve fleshing in course service Signed-off-by: Jane Sandberg Signed-off-by: Michele Morgan Signed-off-by: Galen Charlton --- Open-ILS/src/eg2/src/app/staff/share/course.service.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 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 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(); } } -- 2.11.0