Skip to content

Commit e9d9a38

Browse files
authored
Merge pull request #5 from RTIInternational/bugfix/ApiTrigger123
Fixed another issue with result saving. Fixes problem with response …
2 parents 4154e75 + 9de78ff commit e9d9a38

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,8 @@
2020

2121
## [1.2.2] - 2024-04-03
2222
## Changed
23-
- Made it so blank piped variables don't get replaced with ______ in the api calls.
23+
- Made it so blank piped variables don't get replaced with ______ in the api calls.
24+
25+
## [1.2.3] - 2024-05-31
26+
## Changed
27+
- Fixed another issue with result saving. Fixes problem with response just coming through as "1".

ConditionalAPITriggerModule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function redcap_save_record($project_id, $record, $instrument, $event_id,
5555
$conn = curl_init($url);
5656
$formData = array();
5757

58-
curl_setopt($conn, CURLOPT_RETURNTRANSFER, false);
58+
curl_setopt($conn, CURLOPT_RETURNTRANSFER, true);
5959
if ($apiData[$i] != "") {
6060
$formData = Piping::replaceVariablesInLabel($apiData[$i], $record, $event_id, $repeat_instance, $recordData, false, $project_id, false);
6161
if ($useSeparator[$i] == "1") {

config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"compatibility": {
1616
"redcap-version-min": "8.0.3"
1717
},
18-
"framework-version": 9,
18+
"framework-version": 15,
1919
"project-settings": [
2020
{
2121
"key": "triggers",

0 commit comments

Comments
 (0)