CSV Export with Answer Text: Questions with 2 Answers contains Answer 1 Twice
ke_questionnaire 'version' => '3.1.5'
I have as a Final Question with ID 20:
"Your Contact Data":
with this 2 Answers:
This is both stored to the data Base correctly. When i try to export it to CSV with 3. .3 partizipants, i Get for each of them:
20 Your Contact Data Points 0 0 0
Name: velletti Tester2 Tester3
Email: velletti Tester2 Tester3
$rAnswer = $repRA->findForResultQuestionRaw($rQuestion0['uid']);
This is searching vor ALL answers to this question of this partizipant.
but as olny the first element is taken: $rAnswer = $rAnswer0; this will alwys deliver the first answer.
Changing line 274 to:
$rAnswer = $repRA->findForResultQuestionAndAnswerRaw($rQuestion0['uid'] , $this->getUid());
worked for me