From fc5f21f49b7f4c70d20e2899cb3b590ca55aa374 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Thu, 25 Aug 2016 07:12:01 +1000 Subject: [PATCH] Move varible setting for allowRemoteSubmit outsite immediate if --- CRM/Profile/Page/Router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Profile/Page/Router.php b/CRM/Profile/Page/Router.php index 6aead0e2fc..18198983d0 100644 --- a/CRM/Profile/Page/Router.php +++ b/CRM/Profile/Page/Router.php @@ -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, -- 2.25.1