View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
08382 | Feature requests | Other | public | 2013-11-18 15:59 | 2021-11-04 08:23 |
Reporter | ResearchOnBlogs | Assigned To | galads | ||
Priority | normal | Severity | @50@ | ||
Status | acknowledged | Resolution | open | ||
Summary | 08382: API: function getResponse only return answerID's no answer text | ||||
Description | If you try to show Responses via the plugin (like the given Demo), you only get answer codes for the answers, instead of the answer text - this is not very useful. | ||||
Steps To Reproduce | Activate plugin an | ||||
Tags | No tags attached. | ||||
Attached Files | ls_api_get_response_patch.patch (703 bytes)
Index: application/libraries/PluginManager/LimesurveyApi.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- application/libraries/PluginManager/LimesurveyApi.php (revision ) +++ application/libraries/PluginManager/LimesurveyApi.php (revision ) @@ -192,7 +192,10 @@ } } } - $output[$newKey] = $value; + $output[$qid] = array( + 'answer_name' => $newKey, + 'answer_value' => $value + ); } \ No newline at end of file | ||||
Bug heat | 2 | ||||
Story point estimate | |||||
Users affected % | |||||
Which function does this in the survey answer view? Form id: "browseresults" |
|
I would think that it would better to return something like that: //$output[$newKey] = $value; $output[$qid] = array( This would be comfortable, for working with the qid to get the real answers texts Turn into feature request, please! |
|
$output[$qid] = array( What do you think about this patch? This function would make more sense with it. Cheers Kai |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2013-11-18 15:59 | ResearchOnBlogs | New Issue | |
2013-11-18 16:34 | ResearchOnBlogs | Note Added: 27219 | |
2013-11-18 17:57 | ResearchOnBlogs | Note Added: 27220 | |
2013-11-18 20:08 | ResearchOnBlogs | File Added: ls_api_get_response_patch.patch | |
2013-11-18 20:09 | ResearchOnBlogs | Note Added: 27221 | |
2013-11-21 11:50 | c_schmitz | Project | Bug reports => Feature requests |
2021-11-04 08:23 | galads | Assigned To | => galads |
2021-11-04 08:23 | galads | Status | new => acknowledged |