View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
09339 | Bug reports | Import/Export | public | 2014-10-29 09:53 | 2014-11-10 12:48 |
Reporter | sitawit | Assigned To | c_schmitz | ||
Priority | high | Severity | crash | ||
Status | closed | Resolution | fixed | ||
Product Version | 2.05+ | ||||
Fixed in Version | 2.05+ | ||||
Summary | 09339: LimeSurvey products duplicate questions id when import survey that has different based language. | ||||
Description | Background Problem For example, you have a survey that has English as based language then you import German survey, the questions id of German survey will be restart counting from 1. So the question id will be duplicated. | ||||
Steps To Reproduce |
| ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 6 | ||||
Complete LimeSurvey version number (& build) | Version 2.05+ Build 141020 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | Chrome | ||||
Database type & version | MySQL 5.0 | ||||
Server OS (if known) | Window 7 | ||||
Webserver software & version (if known) | 2.2 | ||||
PHP Version | 5.4 | ||||
We do not support InnoDB tables, only MyISAM. |
|
They are MyISAM tables. I thought it is InnoDB but it's not. My bad. However, this happens to Version 2.05+ Build 141020 but not Version 2.05+ Build 140703. And I'm accessing the database manually. So if we look at "questions" table closely. There were changes of how the table is created. According to installer\sql\create-mysql.sql of Build 141020. The primary key setting of "questions" is :- So when I change this back the table works just fine. But I'm not sure this is the way we should do it so solve the problem. While some forum suggests unique setting instead. How I tested the table, I simply used sql insert script directly to "questions" table. Try insert the table using different value of "language". I can't tell why you can't reproduce this one. And it's still have the same problem. |
|
The lss file have the 2 language ? Maybe best to put the lss file here ;) |
|
No, they are separated surveys. Each one has different base languages. However, I uploaded "duplicated_test.sql" the file will generates 2 "questions" tables. The one is from Build 141020 and another is Build 140703. |
|
I uploaded 2 test surveys. Each one has different based language. So this is how I reproduce this issue.
|
|
Hi, Before staring i look at my DB, the last qid was 42347 then look at select:
But i think we can have some error when: In some situation, we have strange issue when testing, BUT : logout limesurvey admin/ login limesurvey admin allways reset . |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=14607 |
|
Version 2.05 Build 141110 released |
|
LimeSurvey: master 71e7bc14 2014-11-07 17:57 Details Diff |
Fixed issue 09339: Duplicate questions IDs used when new survey that has different based language than previous surveys |
Affected Issues 09339 |
|
mod - application/config/version.php | Diff File | ||
mod - application/helpers/update/updatedb_helper.php | Diff File | ||
mod - installer/sql/create-mssql.sql | Diff File | ||
mod - installer/sql/create-mysql.sql | Diff File | ||
mod - installer/sql/create-pgsql.sql | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2014-10-29 09:53 | sitawit | New Issue | |
2014-10-29 19:18 | c_schmitz | Note Added: 30882 | |
2014-10-29 19:18 | c_schmitz | Status | new => closed |
2014-10-29 19:18 | c_schmitz | Assigned To | => c_schmitz |
2014-10-29 19:18 | c_schmitz | Resolution | open => unable to reproduce |
2014-10-30 05:26 | sitawit | Note Added: 30889 | |
2014-10-30 05:26 | sitawit | Status | closed => feedback |
2014-10-30 05:26 | sitawit | Resolution | unable to reproduce => reopened |
2014-10-30 08:27 | Mazi | Status | feedback => assigned |
2014-10-30 08:46 | sitawit | Note Edited: 30889 | |
2014-10-30 09:49 | DenisChenu | Note Added: 30890 | |
2014-10-30 10:08 | sitawit | File Added: duplicated_test.sql | |
2014-10-30 10:12 | sitawit | Note Added: 30891 | |
2014-10-30 10:29 | sitawit | File Added: limesurvey_survey_381139.lss | |
2014-10-30 10:29 | sitawit | File Added: limesurvey_survey_575216.lss | |
2014-10-30 10:33 | sitawit | Note Added: 30892 | |
2014-11-06 17:56 | DenisChenu | Note Added: 30920 | |
2014-11-06 17:56 | DenisChenu | Note Edited: 30920 | |
2014-11-07 17:57 | c_schmitz | Changeset attached | => LimeSurvey master 71e7bc14 |
2014-11-07 17:57 | c_schmitz | Note Added: 30930 | |
2014-11-07 17:57 | c_schmitz | Status | assigned => resolved |
2014-11-07 17:57 | c_schmitz | Fixed in Version | => 2.05+ |
2014-11-07 17:57 | c_schmitz | Resolution | reopened => fixed |
2014-11-10 12:48 | c_schmitz | Note Added: 30931 | |
2014-11-10 12:48 | c_schmitz | Status | resolved => closed |