projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #9072 from jeromelebleu/patch-19386
[civicrm-core.git]
/
api
/
v3
/
examples
/
ParticipantStatusType
/
Create.php
diff --git
a/api/v3/examples/ParticipantStatusType/Create.php
b/api/v3/examples/ParticipantStatusType/Create.php
index ed6ab392e5c83d188d54f4c83996d319217ce5c0..9059a8b3225bcc6fb9c6298beaeb74d669ec5f8b 100644
(file)
--- a/
api/v3/examples/ParticipantStatusType/Create.php
+++ b/
api/v3/examples/ParticipantStatusType/Create.php
@@
-26,7
+26,8
@@
function participant_status_type_create_example() {
$errorCode = $e->getErrorCode();
$errorData = $e->getExtraParams();
return array(
$errorCode = $e->getErrorCode();
$errorData = $e->getExtraParams();
return array(
- 'error' => $errorMessage,
+ 'is_error' => 1,
+ 'error_message' => $errorMessage,
'error_code' => $errorCode,
'error_data' => $errorData,
);
'error_code' => $errorCode,
'error_data' => $errorData,
);
@@
-47,10
+48,10
@@
function participant_status_type_create_expectedresult() {
'is_error' => 0,
'version' => 3,
'count' => 1,
'is_error' => 0,
'version' => 3,
'count' => 1,
- 'id' => 1
7
,
+ 'id' => 1
8
,
'values' => array(
'values' => array(
- '1
7
' => array(
- 'id' => '1
7
',
+ '1
8
' => array(
+ 'id' => '1
8
',
'name' => 'test status',
'label' => 'I am a test',
'class' => 'Positive',
'name' => 'test status',
'label' => 'I am a test',
'class' => 'Positive',