File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,9 @@ protected function getBaseReturnUrl() {
86
86
* @return string
87
87
*/
88
88
protected function getReturnSuccessUrl ($ qfKey ) {
89
+ if (isset ($ this ->successUrl )) {
90
+ return $ this ->successUrl ;
91
+ }
89
92
return CRM_Utils_System::url ($ this ->getBaseReturnUrl (), array (
90
93
'_qf_ThankYou_display ' => 1 ,
91
94
'qfKey ' => $ qfKey ,
@@ -101,6 +104,9 @@ protected function getReturnSuccessUrl($qfKey) {
101
104
* @return string
102
105
*/
103
106
protected function getReturnFailUrl ($ key , $ participantID = NULL , $ eventID = NULL ) {
107
+ if (isset ($ this ->cancelUrl )) {
108
+ return $ this ->cancelUrl ;
109
+ }
104
110
$ test = $ this ->_is_test ? '&action=preview ' : '' ;
105
111
if ($ this ->_component == "event " ) {
106
112
return CRM_Utils_System::url ('civicrm/event/register ' ,
You can’t perform that action at this time.
0 commit comments