Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Extensions
OSDI
Commits
9db77cf8
Unverified
Commit
9db77cf8
authored
Aug 28, 2018
by
everykittysdaydream
Committed by
GitHub
Aug 28, 2018
Browse files
Merge branch 'master' into webhooknew
parents
7e1aed22
74ffe33c
Changes
3
Hide whitespace changes
Inline
Side-by-side
CRM/Osdi/Page/Webhook.php
View file @
9db77cf8
...
...
@@ -212,8 +212,9 @@ class CRM_Osdi_Page_Webhook extends CRM_Core_Page {
}
}
header
(
'Content-Type:application/hal+json'
,
TRUE
,
200
);
print
json_encode
(
convertContactOSDI
(
$result
[
"values"
][
0
],
array
()),
JSON_PRETTY_PRINT
);
return
;
print
json_encode
(
convertContactOSDI
(
$result
[
"values"
][
0
],
array
()),
JSON_PRETTY_PRINT
);
CRM_Utils_System
::
civiExit
();
return
;
}
}
...
...
api/v3/OSDIJob/Add.php
View file @
9db77cf8
...
...
@@ -193,7 +193,7 @@ function civicrm_api3_o_s_d_i_job_Add($params) {
$returnValues
[
"error_message"
]
=
"this name is not unique."
;
return
civicrm_api3_create_success
(
$returnValues
,
$params
,
'OSDIJob'
,
'Add'
);
}
else
{
// we have to DELETE the onetime job, so exportonceparams can live
// we have to DELETE the onetime job, so exportonceparams can live
(if one exists)
$results_onetime
=
civicrm_api3
(
'Job'
,
'get'
,
[
'name'
=>
"OSDISYNC_EXPORT_ONETIME_"
.
$params
[
"name"
],
'sequential'
=>
1
...
...
templates/CRM/Osdi/Page/OSDIJob.tpl
View file @
9db77cf8
...
...
@@ -205,14 +205,12 @@
if
(
"
values
"
in
result
)
{
if
(
"
error_message
"
in
result
[
"
values
"
])
CRM
.
alert
(
result
[
"
values
"
][
"
error_message
"
]);
}
if
(
!
edit
)
{
// redirect to mapping
window
.
location
.
href
=
"
/civicrm/osdi/mapping?change=1&endpoint=
"
+
rootendpoint
.
val
();
}
});
if
(
!
edit
)
{
// redirect to mapping
window
.
location
.
href
=
"
/civicrm/osdi/mapping?change=1&endpoint=
"
+
rootendpoint
.
val
();
}
dialog
.
dialog
(
"
close
"
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment