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=0dfc046edaef43b774cfad0afac97820ac4f3a9e;p=working%2FEvergreen.git LP1904036 Route dialog autoprint race condition repair Signed-off-by: Bill Erickson --- 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