View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
16454 | Bug reports | Question editor | public | 2020-07-02 17:59 | 2020-10-26 08:16 |
Reporter | gabrieljenik | Assigned To | gabrieljenik | ||
Priority | none | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 4.2.7 | ||||
Summary | 16454: Sometimes, question_order is assigned from survey_id | ||||
Description | We have noticed that sometimes question_order number is set following the survey_id. | ||||
Additional Information | See application/controllers/admin/database.php::745
| ||||
Tags | No tags attached. | ||||
Bug heat | 6 | ||||
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 | ||||
related to | 16334 | closed | galads | Condition editor: previous question not available |
related to | 16488 | closed | gabrieljenik | Reviewing updateQuestionOrder usage |
related to | 16502 | closed | gabrieljenik | Deprecated code in Database controller |
This could happen on v3 as code is shared. |
|
Not the same , right ? |
|
No, not the same. But we have identified some code on v4 which wrongly used updateQuestionOrder() which was very old. Will update later |
|
PR: https://github.com/LimeSurvey/LimeSurvey/pull/1482 On v4, we found "database::actionUpdateQuestion()" to be deprecated. Should it be removed? |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=30666 |
|
yes ! or at minima put phpDoc @deprecated since . |
|
Fixed in Release 4.3.23+201026 |
|
LimeSurvey: master ac15ca87 2020-07-10 21:56 Details Diff |
Fixed issue 16454: Sometimes, question_order is assigned from survey_id When deleting a question, the order of questions in the group were reassigned by calling updateQuestionOrder, but the survey ID was passed as starting position. |
Affected Issues 16454 |
|
mod - application/models/Question.php | Diff File | ||
LimeSurvey: master 1b975c60 2020-07-10 21:57 Details Diff |
Fixed issue 16454: Sometimes, question_order is assigned from survey_id updateQuestionOrder definition was modified to use 1 as default value. Now reordering will follow the same schema as when questions are added, both starting from 1. |
Affected Issues 16454 |
|
mod - application/models/Question.php | Diff File | ||
LimeSurvey: master 078fd368 2020-10-23 12:22 Committer: GitHub Details Diff |
Fixed issue 16454: Sometimes, question_order is assigned from survey_id Merge pull request #1482 from gabrieljenik/bug/16454-Sometimes,-question_order-is-assigned-from-survey_id |
Affected Issues 16454 |
|
mod - application/models/Question.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-07-02 17:59 | gabrieljenik | New Issue | |
2020-07-02 17:59 | gabrieljenik | Relationship added | related to 16334 |
2020-07-02 18:01 | gabrieljenik | Additional Information Updated | |
2020-07-02 18:01 | gabrieljenik | Note Added: 58658 | |
2020-07-02 18:19 | DenisChenu | Note Added: 58666 | |
2020-07-03 11:04 | ollehar | Product Version | => 4.2.7 |
2020-07-06 11:43 | cdorin | Status | new => confirmed |
2020-07-06 11:43 | cdorin | Zoho Sprints | => |Yes| |
2020-07-06 11:43 |
|
Zoho Sprints ID | => 14469000000166001 |
2020-07-07 16:11 | gabrieljenik | Note Added: 58752 | |
2020-07-10 20:09 | gabrieljenik | Issue cloned: 16488 | |
2020-07-10 20:09 | gabrieljenik | Relationship added | related to 16488 |
2020-07-10 20:49 | gabrieljenik | Note Added: 58905 | |
2020-07-10 21:14 | gabrieljenik | Note Edited: 58905 | |
2020-07-10 21:14 | gabrieljenik | Note Edited: 58658 | |
2020-07-16 23:44 | gabrieljenik | Relationship added | related to 16502 |
2020-07-17 16:33 |
|
Zoho Sprints | Yes => |Yes| |
2020-07-17 16:33 |
|
Status | confirmed => resolved |
2020-10-23 10:22 | ollehar | Changeset attached | => LimeSurvey master 078fd368 |
2020-10-23 10:22 | gabrieljenik | Changeset attached | => LimeSurvey master 1b975c60 |
2020-10-23 10:22 | gabrieljenik | Changeset attached | => LimeSurvey master ac15ca87 |
2020-10-23 10:22 | gabrieljenik | Note Added: 60387 | |
2020-10-23 10:22 | gabrieljenik | Assigned To | => gabrieljenik |
2020-10-23 10:22 | gabrieljenik | Resolution | open => fixed |
2020-10-23 10:56 | DenisChenu | Note Added: 60388 | |
2020-10-26 08:16 | lime_release_bot | Zoho Sprints | Yes => |Yes| |
2020-10-26 08:16 | lime_release_bot | Note Added: 60405 | |
2020-10-26 08:16 | lime_release_bot | Status | resolved => closed |