View Issue Details

This bug affects 1 person(s).
 14
IDProjectCategoryView StatusLast Update
05833Bug reportsTranslationpublic2012-02-26 14:21
Reportertacman1123 Assigned ToTMSWhite  
PrioritynormalSeveritypartial_block 
Status closedResolutionfixed 
Product Version1.92RC4 
Target Version1.92RC5Fixed in Version1.92RC5 
Summary05833: Non-english language surveys don't consistently publish
Description

Activating a vietnamese survey is creating a survey table lacking all the SGQA fields, it only has the basic id, start time, token, etc., but none of my fields.

Additional Information

In common_functions.php, around line 2443, the query uses $s_lang, which has previously been set to $clang->langcode.

But that is set to 'en', and our survey only has 'vi', so it has no answer columns.

My guess is that $clang, a global, has been set by something else when navigating around the survey, and it doesn't consistently publish.

TagsNo tags attached.
Bug heat14
Complete LimeSurvey version number (& build)155
I will donate to the project if issue is resolvedNo
Browser
Database type & versionmysql 5
Server OS (if known)all
Webserver software & version (if known)Apache 2.2
PHP Version5.3

Relationships

related to 05834 closedTMSWhite Moving a Vietnamese Survey breaks character set 
has duplicate 05838 closedMazi Unable to end survey 

Users monitoring this issue

There are no users monitoring this issue.

Activities

tacman1123

tacman1123

2012-02-20 09:31

reporter   ~17519

It has something to do with $clang. Sometimes, but inconsistently, a handful of the prompts change to English, even if I'm logged in with my user language set to Vietnamese looking at a Vietnamese-only survey.

In particular, the prompt I think is "Question:", but I think the survey and the groups still have their proper prompt. I'm thinking that if you hit activate from there you have the chance of it publishing without the survey question fields.

At a minimum, the create should fail in this case, since it's worse the create a bad table than to throw an error message.

TMSWhite

TMSWhite

2012-02-21 04:35

reporter   ~17522

Please attach a sample survey showing this behavior so that we can try to reproduce the problem.

tacman1123

tacman1123

2012-02-21 04:53

reporter   ~17523

The export / re-import of the Vietnamese survey causes utf8 problems, I've submitted that as another bug.

But please look at that section of code in common_functions -- there's a definite problem with the language is looking for questions with lang_code as 'en', when it should always be looking for base language questions.

Mazi

Mazi

2012-02-22 15:12

updater   ~17547

Importing the survey attached at http://bugs.limesurvey.org/view.php?id=5834 I can't reproduce the problem. The SGQA columns for the two questions of that survey are created.
Tacman: Does the problem with the missing columns maybe only show up when creating a new survey instead of importing the Vietnamese one?

TMSWhite

TMSWhite

2012-02-22 22:34

reporter   ~17570

I can reproduce this - just activated the Hội thảo ở HCM -Minh survey and it didn't have any SGQA columns generated (so perhaps the fix to the other problems broke this).

TMSWhite

TMSWhite

2012-02-22 23:00

reporter   ~17572

Fixed with patch https://github.com/LimeSurvey/LimeSurvey/commit/96c94379f1c9fd6a814bcf4a176d66017b6f242c

c_schmitz

c_schmitz

2012-02-26 14:21

administrator   ~17646

1.92RC5 release

Issue History

Date Modified Username Field Change
2012-02-20 08:48 tacman1123 New Issue
2012-02-20 09:31 tacman1123 Note Added: 17519
2012-02-21 04:35 TMSWhite Note Added: 17522
2012-02-21 04:53 tacman1123 Note Added: 17523
2012-02-21 16:44 Mazi Relationship added related to 05834
2012-02-21 16:46 Mazi Assigned To => TMSWhite
2012-02-21 16:46 Mazi Status new => assigned
2012-02-22 15:12 Mazi Note Added: 17547
2012-02-22 15:13 Mazi Status assigned => feedback
2012-02-22 22:34 TMSWhite Note Added: 17570
2012-02-22 22:58 TMSWhite Product Version 1.92RC3 => 1.92RC4
2012-02-22 22:58 TMSWhite Target Version => 1.92RC5
2012-02-22 23:00 TMSWhite Note Added: 17572
2012-02-22 23:00 TMSWhite Status feedback => resolved
2012-02-22 23:00 TMSWhite Fixed in Version => 1.92RC5
2012-02-22 23:00 TMSWhite Resolution open => fixed
2012-02-23 15:52 TMSWhite Relationship added has duplicate 05838
2012-02-26 14:21 c_schmitz Note Added: 17646
2012-02-26 14:21 c_schmitz Status resolved => closed