Move varible setting for allowRemoteSubmit outsite immediate if
authorSeamus Lee <seamuslee001@gmail.com>
Wed, 24 Aug 2016 21:12:01 +0000 (07:12 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Thu, 25 Aug 2016 06:49:12 +0000 (16:49 +1000)
CRM/Profile/Page/Router.php

index 6aead0e2fc87e7a45b40c814ccc5bd67fd590b04..18198983d012a0378e0f2afcfe5b9c3413ab61fe 100644 (file)
@@ -97,8 +97,8 @@ class CRM_Profile_Page_Router extends CRM_Core_Page {
     }
 
     if ($secondArg == 'edit' || $secondArg == 'create') {
+      $allowRemoteSubmit = Civi::settings()->get('remote_profile_submissions');
       if ($secondArg == 'edit') {
-        $allowRemoteSubmit = Civi::settings()->get('remote_profile_submissions');
         $controller = new CRM_Core_Controller_Simple('CRM_Profile_Form_Edit',
           ts('Create Profile'),
           CRM_Core_Action::UPDATE,