From: Galen Charlton Date: Tue, 15 Sep 2020 01:15:03 +0000 (-0400) Subject: LP#1849212: (follow-up) fix adding an item to a course with alt call number X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=792e13813573db290a0d73b5040ac41ea23495d9;p=working%2FEvergreen.git LP#1849212: (follow-up) fix adding an item to a course with alt call number open-ils.cat.call_number.find_or_create expects an integer to identify the owning library, not a fieldmapper object. 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 4cca3efe48..080626b8ef 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 @@ -221,7 +221,7 @@ export class CourseService { this.pcrud.update(item).subscribe(() => { if (updatingVolume) { const cn = item.call_number(); - const callNumberLibrary = this.org.canHaveVolumes(courseLib) ? courseLib : cn.owning_lib(); + const callNumberLibrary = this.org.canHaveVolumes(courseLib) ? courseLib.id() : cn.owning_lib(); return this.net.request( 'open-ils.cat', 'open-ils.cat.call_number.find_or_create', this.auth.token(), callNumber, cn.record(),