View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
16610 | Bug reports | _ Unknown | public | 2020-08-22 23:04 | 2021-03-15 15:37 |
Reporter | mikeinpdx | Assigned To | ollehar | ||
Priority | normal | Severity | block | ||
Status | closed | Resolution | fixed | ||
Product Version | 4.3.12 | ||||
Summary | 16610: Conditionals with Array Dual Scale not working | ||||
Description | It appears that conditionals are not working correctly when using array dual scale. In this example survey, selecting "A" for scale1 and "D" for scale2 should enable the second question, but they don't. This same survey worked in an earlier release ( see video https://drive.google.com/file/d/1R4NXkLBkyogxuDLySZkEN9IX42uf4cat/view?usp=sharing). | ||||
Steps To Reproduce | selecting "A" for scale1 and "D" for scale2 should enable the second question | ||||
Additional Information | Note - I selected "yes" for the donation promise since I donate through the Comfort Update subscription | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 10 | ||||
Complete LimeSurvey version number (& build) | Version 4.3.12+200820 | ||||
I will donate to the project if issue is resolved | Yes | ||||
Browser | Chrome | ||||
Database type & version | 5.5.5-10.1.44-MariaDB-0ubuntu0.18.04.1 | ||||
Server OS (if known) | |||||
Webserver software & version (if known) | |||||
PHP Version | 7.2.33-1+ubuntu18.04.1+deb.sury.org+1 | ||||
related to | 17160 | closed | c_schmitz | Unable to edit condition |
related to | 17174 | closed | gabrieljenik | Array dual scale doesn't show previously selected value when come back to same page |
Please check if this bug still exists in the latest patch release. Thank you. |
|
Same issue for me Related to condition ? Number compare ? or double scale ? |
|
Update survey {Q1_SQ001_0.NAOK } is not updated via javascript |
|
And the proof |
|
Hm, should not be set to "feedback"... |
|
Is this broken on LS3 too? Can't import the LS4 survey there. -.- |
|
The HTML didn't change much since 2018-05-08, so I guess the error must be somewhere else. |
|
LS3 survey with same problem. |
|
It work in 3LTS |
|
Yeah, but it was already converted to Twig in LS3. |
|
Not for me (with gif) |
|
Diff between LS3 and LS4 HTML is trivial: < <col class="dsheader" />
|
|
I mean, with same logic. :) Yes, it works in LS3. |
|
$(this).attr('name') !== $(this).attr('id') |
|
$aQuestionsWithDependencies is empty. |
|
work : you can assign to me |
|
markdown disable ? |
|
$aQuestionsWithDependencies is empty in LS3 too, checking method GetRelevanceAndTailoringJavaScript. |
|
Did you test https://bugs.limesurvey.org/view.php?id=16610#c62944 ? |
|
Not yet, one sec... |
|
I do :) Reason : name (and column) of dual scale are {SGQA}{SQ}#0 and {SGQA}{SQ}#1 , but # broke in ID, then replace by {SGQA}_{SQ}0 and {SGQA}{SQ}_1 Dual scale are the only one with # in name (and column) |
|
This assume "_" are not allowed in question codes, right? Or answer codes. |
|
… since years (1.92 i think) We allow bad values in survey done before (if no update of question code) |
|
checkconditions() seem to behave identically in both LS3 and LS4. :| |
|
Guess I could compare how ExprMgr_process_relevance_and_tailoring is generated. :d |
|
@ollehar : seriously ? The difference is only in javascript … for array_dual_scale Did you try checkconditions($(this).val(), $(this).attr('name').replace("#", "_"), 'select-one', 'change') Denis |
|
No, because this change is not needed in LS3. LEMval('222593X8X95SQ003#0.NAOK') works in LS3 too but not in LS4. Thanks for the links. |
|
Oh, you fixed this in 2013 already... |
|
I think we lost https://github.com/LimeSurvey/LimeSurvey/blob/d603a29c5bde04c72c1061eb1b985168c7635e54/assets/scripts/dualscale.js#L22 file in 4.X |
|
Yes, Markus forgot it. I pushed it now to branch bug/16610-conditionals-dual-scale. |
|
Real fix would be to remove |
|
Unsure : my opinion is : use same name than column. Then need to remove the # from column too. |
|
Maybe we need to remove $() and replace it with document.getElementById() then? @DenisChenu You have time to test my commit in the branch bug/16610-conditionals-dual-scale? |
|
? why ? There are currently issue in 3.15 with expression manager using getElementById And here : we use i know HTML5 allow # in id , the n we can get $(this).attr('name') === $(this).attr('id') but we need to update all Expressionmanager class … |
|
To avoid collision with |
|
In 3.X The active element have name with # The action was done by dualscale.js For information in 2.6lst : we have a lot of 'onclick="checkconditions($(this).val(), $(this).attr('name'))"' in HTML source. Expression Manager function seems near same in HTML source of 3.X and 4.X Then:
:D |
|
PS : id have _ already |
|
That's great, but can you also please test my commit? Or read and approve it? |
|
Oups … |
|
Another issue … But same in 3.X ! Fix is OK |
|
Thanks. |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=31310 |
|
Did you open a Dev mantis for jquery VS javascript AND id VS name ? |
|
Nope. I will start looking at the 192 bugs marked as partially blocking now. |
|
Fixed in Release 4.4.13+210315 |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2020-08-22 23:04 | mikeinpdx | New Issue | |
2020-08-22 23:04 | mikeinpdx | File Added: limesurvey_survey_543276.lss | |
2020-08-22 23:04 | mikeinpdx | Issue Monitored: mikeinpdx | |
2021-03-03 14:46 | ollehar | Priority | none => normal |
2021-03-03 14:46 | ollehar | Description Updated | |
2021-03-03 14:46 | ollehar | Additional Information Updated | |
2021-03-03 14:46 | ollehar | Assigned To | => ollehar |
2021-03-03 14:46 | ollehar | Status | new => feedback |
2021-03-03 14:46 | ollehar | Note Added: 62651 | |
2021-03-03 15:01 | DenisChenu | Note Added: 62660 | |
2021-03-03 15:01 | DenisChenu | File Added: Capture d’écran du 2021-03-03 14-57-54.png | |
2021-03-03 15:07 | DenisChenu | Relationship added | related to 17160 |
2021-03-03 15:16 | DenisChenu | Note Added: 62663 | |
2021-03-03 15:16 | DenisChenu | File Added: limesurvey_survey_543276_updated.lss | |
2021-03-03 15:17 | DenisChenu | Note Added: 62664 | |
2021-03-03 15:17 | DenisChenu | File Added: Peek 03-03-2021 15-17.gif | |
2021-03-09 14:14 | ollehar | Note Added: 62932 | |
2021-03-09 14:14 | ollehar | Status | feedback => new |
2021-03-09 14:23 | ollehar | Note Added: 62933 | |
2021-03-09 14:23 | ollehar | Note Edited: 62933 | |
2021-03-09 14:54 | ollehar | Note Added: 62934 | |
2021-03-09 14:54 | ollehar | Status | new => assigned |
2021-03-09 15:03 | ollehar | Note Added: 62935 | |
2021-03-09 15:03 | ollehar | File Added: limesurvey_survey_222593.lss | |
2021-03-09 15:03 | DenisChenu | Note Added: 62936 | |
2021-03-09 15:03 | DenisChenu | File Added: limesurvey_survey_arrayDual3LTS.lss | |
2021-03-09 15:05 | ollehar | Note Added: 62937 | |
2021-03-09 15:06 | DenisChenu | Note Added: 62938 | |
2021-03-09 15:06 | DenisChenu | File Added: Peek 09-03-2021 15-05.gif | |
2021-03-09 15:06 | ollehar | Note Added: 62939 | |
2021-03-09 15:06 | ollehar | Note Added: 62940 | |
2021-03-09 15:08 | DenisChenu | Note Added: 62941 | |
2021-03-09 15:09 | DenisChenu | Note Added: 62942 | |
2021-03-09 15:20 | ollehar | Note Added: 62943 | |
2021-03-09 15:34 | DenisChenu | Note Added: 62944 | |
2021-03-09 15:34 | DenisChenu | Note Edited: 62944 | |
2021-03-09 15:34 | DenisChenu | Note Added: 62945 | |
2021-03-09 15:54 | ollehar | Note Added: 62949 | |
2021-03-09 15:57 | DenisChenu | Note Added: 62950 | |
2021-03-09 15:58 | ollehar | Note Added: 62951 | |
2021-03-09 16:03 | DenisChenu | Note Added: 62952 | |
2021-03-09 16:11 | ollehar | Note Added: 62953 | |
2021-03-09 16:13 | DenisChenu | Note Added: 62954 | |
2021-03-09 19:11 | ollehar | Note Added: 62970 | |
2021-03-09 19:12 | ollehar | Note Added: 62971 | |
2021-03-09 19:17 | DenisChenu | Note Added: 62972 | |
2021-03-09 19:22 | ollehar | Note Added: 62973 | |
2021-03-09 19:24 | ollehar | Note Added: 62974 | |
2021-03-09 19:41 | DenisChenu | Note Added: 62975 | |
2021-03-09 19:42 | ollehar | Working Git branch (developer only) | => bug/16610-conditionals-dual-scale |
2021-03-09 19:42 | ollehar | Note Added: 62976 | |
2021-03-09 19:43 | ollehar | Status | assigned => ready for testing |
2021-03-09 19:44 | ollehar | Note Added: 62977 | |
2021-03-09 19:44 | ollehar | Note Edited: 62977 | |
2021-03-09 19:44 | DenisChenu | Note Added: 62978 | |
2021-03-09 20:57 | ollehar | Summary | Conditionals with Array Dual Scale not working? => Conditionals with Array Dual Scale not working |
2021-03-10 11:03 | ollehar | Note Added: 62986 | |
2021-03-10 11:29 | DenisChenu | Note Added: 62987 | |
2021-03-10 11:48 | ollehar | Note Added: 62990 | |
2021-03-10 15:33 | DenisChenu | Note Added: 62998 | |
2021-03-10 15:33 | DenisChenu | File Added: Capture d’écran du 2021-03-10 15-27-48.png | |
2021-03-10 15:33 | DenisChenu | File Added: Capture d’écran du 2021-03-10 15-28-00.png | |
2021-03-10 15:34 | DenisChenu | Note Added: 62999 | |
2021-03-10 15:34 | DenisChenu | File Added: Capture d’écran du 2021-03-10 15-34-16.png | |
2021-03-10 15:37 | ollehar | Note Added: 63000 | |
2021-03-10 15:54 | DenisChenu | Note Added: 63002 | |
2021-03-10 16:05 | DenisChenu | Note Added: 63005 | |
2021-03-10 16:06 | ollehar | Note Added: 63006 | |
2021-03-10 16:06 | ollehar1 | Changeset attached | => LimeSurvey master 8de39019 |
2021-03-10 16:06 | ollehar1 | Note Added: 63007 | |
2021-03-10 16:07 | ollehar | Status | ready for testing => resolved |
2021-03-10 16:07 | ollehar | Resolution | open => fixed |
2021-03-10 16:14 | DenisChenu | Relationship added | related to 17174 |
2021-03-10 16:19 | DenisChenu | Note Added: 63013 | |
2021-03-10 16:22 | ollehar | Note Added: 63015 | |
2021-03-15 15:37 | lime_release_bot | Note Added: 63378 | |
2021-03-15 15:37 | lime_release_bot | Status | resolved => closed |