View Issue Details

This bug affects 1 person(s).
 20
IDProjectCategoryView StatusLast Update
07869Bug reportsRemoteControlpublic2013-08-27 08:44
Reporterallinonesoftware Assigned Tomdekker  
PriorityhighSeverityminor 
Status closedResolutionfixed 
Product Version2.00+ 
Fixed in Version2.05 RC 
Summary07869: export_responses result as always in the default language
Description

Regardless of the provided language code, the export_responses function in the remote control will always return the question titles and answers in the default language.

Steps To Reproduce

Call export_responses using the following parameters:
$params = array(
"SurveyID" => 488773
"DocumentType" => "csv",
"sLanguageCode" => "en",
"CompletionStatus" => "all",
"HeadingType" => "abbreviated",
"ResponseType" => "long",
"FromResponse" => 0,
"ToResponse" => 0,
"Fields" => NULL,
)
and have the default language of the survey set to anything other than English.

TagsNo tags attached.
Bug heat20
Complete LimeSurvey version number (& build)130514
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMySQL 5.1.41
Server OS (if known)Ubuntu 10.04
Webserver software & version (if known)Apache 2.2.14
PHP Version5.3.2

Relationships

has duplicate 07828 closedmdekker Feature requests export_responses does not respect "lang" parameter 

Users monitoring this issue

allinonesoftware

Activities

c_schmitz

c_schmitz

2013-05-26 21:32

administrator   ~25384

trougakoss, can you reproduce that?

trougakoss

trougakoss

2013-05-29 17:32

reporter   ~25417

Sorry for the delay guys.... .
I reproduced it, when i was looking at bug 07828

http://bugs.limesurvey.org/view.php?id=7828

The problem is not in the remotecontrol, but rather in a deeper level.
In the remotecontrol i use the exportSurvey method from ExportSurveyResultsService and i provide the proper language code.
Unfortunately this language code is only used in getting the chosen languages results and not the proper labels.
The new SurveyDao() that is created in the helper function when loading the survey chooses the default language if i am not mistaken.

What is your opinion Carsten?

Mazi

Mazi

2013-06-01 09:40

updater   ~25441

Carsten, seems like we need to fix something deeper in the code first?!

bebs

bebs

2013-06-03 10:41

reporter   ~25456

+1. simple comment to "subscribe" to the bug, sorry for the spam.

mdekker

mdekker

2013-06-04 15:16

reporter   ~25462

Shall I take this bug? I am working on 2.05 export and can fix it on the exportresults_helper and derived classes. Think the remote control is fixed when the export is fixed. But it will have to wait for 2.05 to be released.

mdekker

mdekker

2013-06-05 10:02

reporter   ~25469

Attached changeset fixes the problem in the 2.05 branch. If not really needed I prefer not to fix it in 2.0

c_schmitz

c_schmitz

2013-08-16 13:54

administrator   ~26017

2.05 beta 6 released

Related Changesets

LimeSurvey: 2.05 0c226cd3

2013-06-05 07:03:00

mdekker

Details Diff
Fixed 07828: export_responses does not respect "lang" parameter Affected Issues
07828, 07869
mod - application/helpers/admin/export/ExcelWriter.php Diff File
mod - application/helpers/admin/export/PdfWriter.php Diff File
mod - application/helpers/admin/export/SurveyDao.php Diff File
mod - application/helpers/admin/exportresults_helper.php Diff File

Issue History

Date Modified Username Field Change
2013-05-24 13:45 allinonesoftware New Issue
2013-05-26 21:32 c_schmitz Assigned To => trougakoss
2013-05-26 21:32 c_schmitz Status new => assigned
2013-05-26 21:32 c_schmitz Note Added: 25384
2013-05-29 17:32 trougakoss Note Added: 25417
2013-06-01 09:40 Mazi Assigned To trougakoss => c_schmitz
2013-06-01 09:40 Mazi Note Added: 25441
2013-06-02 19:00 c_schmitz Relationship added has duplicate 07828
2013-06-03 10:41 bebs Note Added: 25456
2013-06-04 15:16 mdekker Note Added: 25462
2013-06-04 15:41 c_schmitz Assigned To c_schmitz => mdekker
2013-06-05 09:57 mdekker Changeset attached => LimeSurvey 2.05 0c226cd3
2013-06-05 10:02 mdekker Note Added: 25469
2013-06-05 10:03 mdekker Status assigned => resolved
2013-06-05 10:03 mdekker Fixed in Version => 2.05 RC
2013-06-05 10:03 mdekker Resolution open => fixed
2013-08-16 13:54 c_schmitz Note Added: 26017
2013-08-16 13:54 c_schmitz Status resolved => closed
2013-08-27 08:44 allinonesoftware Issue Monitored: allinonesoftware
2021-08-02 17:14 guest Bug heat 16 => 20