From 364868caa12c0f9e485b2ae80549bf958661328d Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 7 Oct 2021 10:42:57 -0400 Subject: [PATCH] LP1904036 Auto-print holds/transits checkin mod fix Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- Open-ILS/src/eg2/src/app/staff/share/circ/circ.service.ts | 7 ++++++- .../src/eg2/src/app/staff/share/circ/route-dialog.component.ts | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/share/circ/circ.service.ts b/Open-ILS/src/eg2/src/app/staff/share/circ/circ.service.ts index c1b0983ba8..c7ddd3bc5f 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/circ/circ.service.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/circ/circ.service.ts @@ -170,7 +170,7 @@ export interface CheckinParams { copy_barcode?: string; claims_never_checked_out?: boolean; void_overdues?: boolean; - auto_print_hold_transits?: boolean; + auto_print_holds_transits?: boolean; backdate?: string; capture?: string; next_copy_status?: number[]; @@ -380,6 +380,11 @@ export class CircService { const remove = Object.keys(apiParams).filter(k => k.match(/^_/)); remove.forEach(p => delete apiParams[p]); + // This modifier is not sent to the server. + // Should be _-prefixed, but we already have a workstation setting, + // etc. for this one. Just manually remove it from the API params. + delete apiParams['auto_print_holds_transits']; + return apiParams; } diff --git a/Open-ILS/src/eg2/src/app/staff/share/circ/route-dialog.component.ts b/Open-ILS/src/eg2/src/app/staff/share/circ/route-dialog.component.ts index 55fad58859..f9aa4dece3 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/circ/route-dialog.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/circ/route-dialog.component.ts @@ -92,7 +92,7 @@ export class RouteDialogComponent extends DialogComponent { }); } - if (this.checkin.params.auto_print_hold_transits + if (this.checkin.params.auto_print_holds_transits || this.circ.suppressCheckinPopups) { // Print and exit. return this.print().then(_ => true); // exit -- 2.11.0