Skip to content

Commit

Permalink
Fixed issue: survey detail endpoint question attribute ids now return…
Browse files Browse the repository at this point in the history
…ed as integers
  • Loading branch information
twilligls committed Nov 3, 2023
1 parent 1e12108 commit 7ccf643
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ public function transformAll($collection)
foreach ($attributes as $attrSet) {
if (!array_key_exists($attrSet->attribute, $tfAttributes)) {
$tfAttributes[$attrSet->attribute] = [
'qid' => $attrSet->qid,
'qid' => (int) $attrSet->qid,
$attrSet->language => [
'qaid' => $attrSet->qaid,
'qaid' => (int) $attrSet->qaid,
'value' => $attrSet->value
]
];
} else {
$tfAttributes[$attrSet->attribute][$attrSet->language] = [
'qaid' => $attrSet->qaid,
'qaid' => (int) $attrSet->qaid,
'value' => $attrSet->value
];
}
Expand Down

0 comments on commit 7ccf643

Please sign in to comment.