LP1904036 Route dialog autoprint race condition repair
authorBill Erickson <berickxx@gmail.com>
Mon, 13 Dec 2021 18:11:00 +0000 (13:11 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 00:13:39 +0000 (20:13 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/share/circ/route-dialog.component.ts

index f9aa4de..490e065 100644 (file)
@@ -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