View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
05833 | Bug reports | Translation | public | 2012-02-20 08:48 | 2012-02-26 14:21 |
Reporter | tacman1123 | Assigned To | TMSWhite | ||
Priority | normal | Severity | partial_block | ||
Status | closed | Resolution | fixed | ||
Product Version | 1.92RC4 | ||||
Target Version | 1.92RC5 | Fixed in Version | 1.92RC5 | ||
Summary | 05833: 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. | ||||
Tags | No tags attached. | ||||
Bug heat | 14 | ||||
Complete LimeSurvey version number (& build) | 155 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | |||||
Database type & version | mysql 5 | ||||
Server OS (if known) | all | ||||
Webserver software & version (if known) | Apache 2.2 | ||||
PHP Version | 5.3 | ||||
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. |
|
Please attach a sample survey showing this behavior so that we can try to reproduce the problem. |
|
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. |
|
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. |
|
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). |
|
Fixed with patch https://github.com/LimeSurvey/LimeSurvey/commit/96c94379f1c9fd6a814bcf4a176d66017b6f242c |
|
1.92RC5 release |
|
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 |