Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

function getFullResponseTable error

  • labean0103
  • labean0103's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 11 months ago #240644 by labean0103
function getFullResponseTable error was created by labean0103
LimeSurvey version: LimeSurvey Version 3.25.18
==================
Hey!

I don't really know where I could ask this, but I think there is an error in getting responses from questions type T (long free text) in getFullResponseTable function in LimeSurvey/application/helpers/common_helper.php
Compare:
1)
Code:
$oResponse = SurveyDynamic::model($testsurvey_id)->findByAttributes(array('token' => $token));
//output:
SurveyDynamic Object
(
    [completed_filter] => 
    [firstname_filter] => 
    [lastname_filter] => 
    [email_filter] => 
    [lastpage] => 1
    [bHaveToken:protected] => 
    [_new:CActiveRecord:private] => 
    [_attributes:CActiveRecord:private] => Array
        (
            [id] => 1
            [token] => 4XedA
            [submitdate] => 1980-01-01 00:00:00
            [startlanguage] => en
            [seed] => 1898938554
            [978369X26X271] => aaaaaaaaaaa
        ) //....array continues
2)
Code:
$aPrintedAnswers = getFullResponseTable($testsurvey_id, $oResponse['id'], $lang);
//output:
//...array start...
    [token] => Array
        (
            [0] => Token
            [1] => 
            [2] => 4XedA
        )
 
    [gid_25] => Array
        (
            [0] => 
            [1] => 
        )
 
    [978369X26X271] => Array
        (
            [0] => 
            [1] => 
        )
 
)

The answer to the question is empty in the array from getFullResponseTable.
Is this a bug or am I doing something wrong?

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 11 months ago #240654 by holch
Replied by holch on topic function getFullResponseTable error
Your Limesurvey version 3.25.18 was released on 15.03.2021, so almost 2 years ago. Update to the lastet version of LS 3.x and check if the error persists.

It doesn't make sense to try troubleshooting an outdated version of Limesurvey. This might have been fixed long ago.

If you can reproduce this with the lates LS 3.x which today is 3.28.49 build 230215 (leased 2 days ago), then please file a bug report (bugs.limesurvey.org).

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose