View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
16453 | Bug reports | Question editor | public | 2020-07-02 17:49 | 2020-07-21 09:38 |
Reporter | gabrieljenik | Assigned To | |||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 4.2.7 | ||||
Summary | 16453: Sometimes we get duplicate question_orders on new questions | ||||
Description | After creating a new question on a group with previous questions, the question_order attribute is duplicated with other questions. | ||||
Tags | No tags attached. | ||||
Bug heat | 10 | ||||
Complete LimeSurvey version number (& build) | 4.2.7 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | |||||
Database type & version | Mysql | ||||
Server OS (if known) | |||||
Webserver software & version (if known) | |||||
PHP Version | 7 | ||||
This could happen on v3 as code is shared. |
|
I never see question_order issue in 3, but a lot in 4. Unsure it's related to preview ? Link to code ? |
|
The QuestionEditorController was assigning the order to new questions based on getMaxQuestionOrder(), without increasing by one, so new questions had the same order as the last one on the group. |
|
Tested the issue by pulling the PR. Working as expected. Please refer the attachment for more details |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=30284 |
|
Fixed in Release 4.3.5+200721 |
|
LimeSurvey: master 8217e548 2020-07-15 17:56 Committer: GitHub Details Diff |
Fixed issue 16453: Sometimes we get duplicate question_orders on new questions (#1481) Dev: The QuestionEditorController was assigning the order to new questions based on getMaxQuestionOrder(), without Dev: increasing by one, so new questions had the same order as the last one on the group |
Affected Issues 16453 |
|
mod - application/controllers/QuestionEditorController.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-07-02 17:49 | gabrieljenik | New Issue | |
2020-07-02 17:50 | gabrieljenik | Relationship added | related to 16334 |
2020-07-02 18:01 | gabrieljenik | Note Added: 58659 | |
2020-07-02 18:17 | DenisChenu | Note Added: 58665 | |
2020-07-03 11:05 | ollehar | Product Version | => 4.2.7 |
2020-07-06 11:42 | cdorin | Priority | none => normal |
2020-07-06 11:42 | cdorin | Status | new => confirmed |
2020-07-06 11:42 | cdorin | Zoho Sprints | => |Yes| |
2020-07-06 13:48 |
|
Zoho Sprints ID | => 14469000000167025 |
2020-07-07 16:07 | gabrieljenik | Note Added: 58751 | |
2020-07-10 19:51 | gabrieljenik | Note Added: 58903 | |
2020-07-13 18:12 |
|
Note Added: 58930 | |
2020-07-13 18:12 |
|
File Added: 16453_QuestionOrder.png | |
2020-07-15 15:56 | gabrieljenik | Changeset attached | => LimeSurvey master 8217e548 |
2020-07-15 15:56 | guest | Note Added: 58959 | |
2020-07-15 16:01 |
|
Zoho Sprints | Yes => |Yes| |
2020-07-15 16:01 |
|
Status | confirmed => resolved |
2020-07-21 09:38 | lime_release_bot | Zoho Sprints | Yes => |Yes| |
2020-07-21 09:38 | lime_release_bot | Note Added: 59012 | |
2020-07-21 09:38 | lime_release_bot | Status | resolved => closed |
2020-07-21 09:38 | lime_release_bot | Resolution | open => fixed |