View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
17159 | Bug reports | Menu system | public | 2021-03-03 12:45 | 2021-03-08 19:33 |
Reporter | PMagel | Assigned To | ollehar | ||
Priority | high | Severity | block | ||
Status | closed | Resolution | fixed | ||
Product Version | 4.4.0-RC2 | ||||
Fixed in Version | 4.4.12 | ||||
Summary | 17159: Question type: Array dual scale doesn't save state. | ||||
Description | We found a Problem regarding the Array dual scale question type. | ||||
Steps To Reproduce | Just create 2 questions, first a Array dual scale type and the second one I selected a Long free text as an example. | ||||
Additional Information | We found a solution for this in the file 'application/core/QuestionTypes/ArrayMultiscale/QuestionBaseRenderer.php'. It has to be changed on multiple places.
$myfid1 = $this->sSGQA.$oQuestionRow->title.'_1'; $aData['aSubQuestions'][$i]['title'] = $oQuestionRow->title; // this line was added
if (!empty($this->getFromSurveySession($myfname0)) && $this->getFromSurveySession($myfname0) == $ld) { was replaced with this: if (!is_null($this->getFromSurveySession($myfname0)) && $this->getFromSurveySession($myfname0) == $ld) {
if (!empty($this->getFromSurveySession($myfname1)) && $this->getFromSurveySession($myfname1) == $ld) { was replaced with this: if (!is_null($this->getFromSurveySession($myfname1)) && $this->getFromSurveySession($myfname1) == $ld) { This solves the Problem. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 6 | ||||
Complete LimeSurvey version number (& build) | Version 4.4.0-RC4+210120 on my PC but also in version 4.3.30. | ||||
I will donate to the project if issue is resolved | Yes | ||||
Browser | Chrome | ||||
Database type & version | PostgresSQL | ||||
Server OS (if known) | commentary at the end | ||||
Webserver software & version (if known) | |||||
PHP Version | 7.4.15 | ||||
You're using an outdated version of LimeSurvey. Please update to the latest version and check if the bug can still be reproduced. Thank you. |
|
I now tested it on version 4.4.11+210301 and the bug is still there. I also tested the described solution and it also worked in this version. |
|
Can you enable debug = 2 in application/config/config.php and try again, please? Paste the complete error message here. |
|
As you told me, I enabled the debug mode, then I specified a 'error_log' destination and there are no errors showing. I even put a test 'error_log()' in the functions that are related to the problem and they are shown as expected. |
|
Correct file is: application/core/QuestionTypes/ArrayMultiscale/RenderArrayMultiscale.php |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=31260 |
|
Oh sorry, I forgot to change the directory when creating this bug report. Yes this is the right .php file. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2021-03-03 12:45 | PMagel | New Issue | |
2021-03-03 12:45 | PMagel | File Added: limesurvey_survey_532994.lss | |
2021-03-03 14:22 | ollehar | Assigned To | => ollehar |
2021-03-03 14:22 | ollehar | Status | new => feedback |
2021-03-03 14:22 | ollehar | Note Added: 62642 | |
2021-03-03 14:51 | PMagel | Note Added: 62654 | |
2021-03-03 14:51 | PMagel | Status | feedback => assigned |
2021-03-03 14:54 | ollehar | Priority | none => high |
2021-03-03 14:54 | ollehar | Severity | minor => block |
2021-03-03 14:54 | ollehar | Description Updated | |
2021-03-03 14:54 | ollehar | Steps to Reproduce Updated | |
2021-03-03 14:54 | ollehar | Additional Information Updated | |
2021-03-03 14:56 | ollehar | Note Added: 62658 | |
2021-03-04 11:24 | PMagel | Note Added: 62708 | |
2021-03-04 19:40 | ollehar | Note Added: 62736 | |
2021-03-04 19:42 | ollehar1 | Changeset attached | => LimeSurvey master 92cf20fa |
2021-03-04 19:42 | ollehar1 | Note Added: 62737 | |
2021-03-04 19:44 | ollehar | Status | assigned => resolved |
2021-03-04 19:44 | ollehar | Resolution | open => fixed |
2021-03-04 19:45 | PMagel | Note Added: 62739 | |
2021-03-08 19:31 | c_schmitz | Fixed in Version | => 4.4.12 |
2021-03-08 19:33 | c_schmitz | Status | resolved => closed |