Skip to content

Commit

Permalink
avoid updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcclelland committed Oct 19, 2020
1 parent 456048a commit a8a8ff6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CRM/Remoteform/Page/RemoteForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit a8a8ff6

Please sign in to comment.