From: Bill Erickson Date: Mon, 13 Dec 2021 18:11:00 +0000 (-0500) Subject: LP1904036 Route dialog autoprint race condition repair X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8b84a014475776ecca2c8296bf5232a3d84b2247;p=Evergreen.git LP1904036 Route dialog autoprint race condition repair Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- 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 f9aa4dece3..490e0659ec 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 @@ -95,7 +95,7 @@ export class RouteDialogComponent extends DialogComponent { if (this.checkin.params.auto_print_holds_transits || this.circ.suppressCheckinPopups) { // Print and exit. - return this.print().then(_ => true); // exit + return promise.then(_ => this.print()).then(_ => true); // exit } return promise.then(_ => false); // keep going