From 1ab5bc1f6b0bb6e96a49692fd6004d9ddee8af59 Mon Sep 17 00:00:00 2001 From: WillieWookiee Date: Tue, 11 Feb 2020 14:53:06 -0600 Subject: [PATCH] Fixing cancel button. (#3309) This fix addresses a bug where if you create a quote and then go into the client portal to add a credit card, the cancel button will take you back to the first quote of the client regardless if it is a draft or not. This will now take you back to the previous page. --- resources/views/payments/credit_card.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/payments/credit_card.blade.php b/resources/views/payments/credit_card.blade.php index 4fa61932b72f..04f976b0a8e8 100644 --- a/resources/views/payments/credit_card.blade.php +++ b/resources/views/payments/credit_card.blade.php @@ -632,7 +632,7 @@

 

@if (isset($invitation)) - {!! Button::normal(strtoupper(trans('texts.cancel')))->large()->asLinkTo($invitation->getLink()) !!} + {!! Button::normal(strtoupper(trans('texts.cancel')))->large()->asLinkTo(HTMLUtils::previousUrl('/')) !!}    @endif