From 923359210ccce34f24ab67a4667c727f1cea5ac4 Mon Sep 17 00:00:00 2001 From: Jonathan Niles Date: Thu, 19 Jan 2017 11:26:48 +0100 Subject: [PATCH] fix(cash): make cash disable on submit This commit fixes a bug in the cash payment page where the cash payments module does not disable when the submit button is clicked. --- client/src/partials/cash/cash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/partials/cash/cash.js b/client/src/partials/cash/cash.js index ff2d785cd1..56901a4d4c 100644 --- a/client/src/partials/cash/cash.js +++ b/client/src/partials/cash/cash.js @@ -124,7 +124,7 @@ function CashController(Cash, Cashboxes, AppCache, Currencies, Session, Modals, return Notify.danger('CASH.VOUCHER.NO_INVOICES_ASSIGNED'); } - var promise = $q.resolve() + return $q.resolve() .then(function () { return hasCaution ? Modals.confirm('CASH.CONFIRM_PAYMENT_WHEN_CAUTION') : true;