View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
08382Feature requestsOtherpublic2021-11-04 08:23
ReporterResearchOnBlogs Assigned Togalads  
PrioritynormalSeverity@50@ 
Status acknowledgedResolutionopen 
Summary08382: 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

TagsNo 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 heat2
Story point estimate
Users affected %

Users monitoring this issue

There are no users monitoring this issue.

Activities

ResearchOnBlogs

ResearchOnBlogs

2013-11-18 16:34

developer   ~27219

Which function does this in the survey answer view? Form id: "browseresults"

ResearchOnBlogs

ResearchOnBlogs

2013-11-18 17:57

developer   ~27220

I would think that it would better to return something like that:

//$output[$newKey] = $value;

$output[$qid] = array(
'value' => $value,
);

This would be comfortable, for working with the qid to get the real answers texts

Turn into feature request, please!

ResearchOnBlogs

ResearchOnBlogs

2013-11-18 20:09

developer   ~27221

$output[$qid] = array(
'answer_name' => $newKey,
'answer_value' => $value
);

What do you think about this patch? This function would make more sense with it.

Cheers Kai

Issue History

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