Skip to content

Commit

Permalink
AbstractEntityApi: Use correct CiviCRM actions for entity creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominic Tubach committed Jul 26, 2024
1 parent 20cbde1 commit d4b724b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/civiremote_entity/src/Api/AbstractEntityApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function __construct(
* @phpstan-param array<int|string, mixed> $arguments JSON serializable.
*/
public function getCreateForm(string $profile, array $arguments = []): EntityForm {
$result = $this->client->executeV4($this->getRemoteEntityName(), 'getUpdateForm', [
$result = $this->client->executeV4($this->getRemoteEntityName(), 'getCreateForm', [
'profile' => $profile,
'arguments' => $arguments,
'remoteContactId' => $this->remoteContactIdProvider->getRemoteContactId(),
Expand All @@ -57,7 +57,7 @@ public function getCreateForm(string $profile, array $arguments = []): EntityFor
* @phpstan-param array<int|string, mixed> $arguments JSON serializable.
*/
public function submitCreateForm(string $profile, array $data, array $arguments = []): FormSubmitResponse {
$result = $this->client->executeV4($this->getRemoteEntityName(), 'submitUpdateForm', [
$result = $this->client->executeV4($this->getRemoteEntityName(), 'submitCreateForm', [
'profile' => $profile,
'data' => $data,
'arguments' => $arguments,
Expand All @@ -72,7 +72,7 @@ public function submitCreateForm(string $profile, array $data, array $arguments
* @phpstan-param array<int|string, mixed> $arguments JSON serializable.
*/
public function validateCreateForm(string $profile, array $data, array $arguments = []): FormValidationResponse {
$result = $this->client->executeV4($this->getRemoteEntityName(), 'validateUpdateForm', [
$result = $this->client->executeV4($this->getRemoteEntityName(), 'validateCreateForm', [
'profile' => $profile,
'data' => $data,
'arguments' => $arguments,
Expand Down

0 comments on commit d4b724b

Please sign in to comment.