To test:
* Apply this patch
* Login to BR1 workstation
* Go to Admin - Local Admin - Course Reserves List
* Create two courses, Course 1 and Course 2
* Associate materials to both courses
* Archive Course 1
* Go to Course materials on Course 2 and note that
it still has all of its materials attached.
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Beth Willis <willis@noblenet.org>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
course_library_hash[course.id()] = course.owning_lib();
});
- this.pcrud.retrieveAll('acmcm', {course: course_ids}).subscribe(material => {
+ this.pcrud.search('acmcm', {course: course_ids}).subscribe(material => {
deleteRequest$.push(this.net.request(
'open-ils.courses', 'open-ils.courses.detach_material',
this.auth.token(), material.id()));