diff --git a/CRM/Remoteform/Page/RemoteForm.php b/CRM/Remoteform/Page/RemoteForm.php index 9d09323..31c5622 100644 --- a/CRM/Remoteform/Page/RemoteForm.php +++ b/CRM/Remoteform/Page/RemoteForm.php @@ -63,7 +63,7 @@ public function run() { $contact_id = $result['id']; $this->profilePostSubmit($uf_group_id, $contact_id); } - $this->exitSuccess($result['values']); + $this->exitSuccess([]); } catch (Exception $e) { $this->exitError($e->getMessage()); @@ -153,6 +153,8 @@ function sanitizeInput($input) { ); } if ($action == 'submit') { + // Avoid updates by ensuring no contact_id is specified. + unset($input_params['contact_id']); return array( 'entity' => 'Profile', 'action' => 'submit',