diff --git a/CRM/Booking/Form/Booking/Info.php b/CRM/Booking/Form/Booking/Info.php index 2d955685..2952de9b 100644 --- a/CRM/Booking/Form/Booking/Info.php +++ b/CRM/Booking/Form/Booking/Info.php @@ -83,7 +83,7 @@ function buildQuickForm() { 'name' => ts('<< Back'), ), array( - 'type' => 'submit', + 'type' => 'next', 'name' => ts('Complete and Save'), ), ); @@ -373,7 +373,8 @@ function postProcess() { "reset=1&id=$bookingID&cid=$cid&action=view" ); CRM_Core_Session::setStatus($booking['title'], ts('Saved'), 'success'); - CRM_Utils_System::redirect( $url); + $session->pushUserContext($url); + } catch (CiviCRM_API3_Exception $e) { $transaction->rollback();