View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
06338 | Bug reports | Other | public | 2012-07-18 18:30 | 2013-03-12 14:51 |
Reporter | DenisChenu | Assigned To | DenisChenu | ||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 1.92+ | ||||
Fixed in Version | 2.00+ | ||||
Summary | 06338: Group preview and question preview : exclusive_option don't work | ||||
Description | In some condition, exclusive_option don't work in group preview or question preview. | ||||
Steps To Reproduce | Create a survey, Lauch a question preview or a group preview: exclusive multi-choice don't work. | ||||
Additional Information | Seems to work if there are 2 question. Put a survey with 3 group, test and test again. Maybe you have to activate/deactivate survey to see the problem ? Seem too: for groupe 2: if you launch group preview and after quetsion preview: working, if you launch directly question preview: don't work. Somme session problem maybe. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 4 | ||||
Complete LimeSurvey version number (& build) | 120718 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | FF12 (tested with IE9 too) | ||||
Database type & version | Mysql 5 | ||||
Server OS (if known) | debian/linux | ||||
Webserver software & version (if known) | apache | ||||
PHP Version | PHP Version 5.3 | ||||
duplicate of | 07315 | closed | DenisChenu | Validation regex not being checked / not working (logic test ok) |
Updated : Here: Tom, can you have a look, please ? |
|
Denis- I don't see a simple solution. The root problem is that question preview uses preview.php, but survey and group preview (along with real data collection) use group.php. Preview.php makes a number of assumptions in an effort to simplify the code. It seems to be making too many such assumptions, and it is hard to keep its code-base in sync with group.php. The best solution is to remove preview.php and augment group.php to show single questions. That would ensure that everything else is the same. However, since that is a pretty major change, I'd recommend not attempting that for 1.92, but rather ensuring that 2.0 takes that strategy. In the meantime, since this is minor, and there is an easy work-around (use group or survey-level preview to preview the logic; and use question level preview mostly for cosmetics), I think this issue can be flagged as "won't fix". /Tom |
|
Hello Tom, No, it's on group preview here too. The javascript is: Without group preview: I test with "array_filter" and same think : array_filter don't go because there are relevance in group. Maybe best is to remove all group relevance calculation if $preview ? |
|
Hello Tom, What do you think of a Denis |
|
Again, good ideas for 2.0, but perhaps overkill for 1.92+ Yes, for your third group, it wasn't executing the exclusion filter because the whole group was irrelevant. So, disabling the group-level relevance in group AND question preview modes is the ideal solution; but that is a pretty significant change. |
|
Yes, a $LEM->previewMode could be used to conditionally turn off question and/or group-level relevance (and perhaps mandatory too). However, that is a bigger change than I'm prepared to tackle at this time. |
|
Hello, Another idea: add a {ACTIVE} or {PREVIEW} global EM expression. Then if preview group : we can add allways or {PREVIEW} on Relevance equation But user can add themeself or {PREVIEW} in relevance equation for condition on another group. For example: Question G2Q2 relevance equation: (G1Q1=="Y" or PREVIEW) and G2Q1=="Y" |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2012-07-18 18:30 | DenisChenu | New Issue | |
2012-07-18 18:30 | DenisChenu | File Added: limesurvey_survey_exclusive-bug.lss | |
2012-07-18 18:30 | DenisChenu | Steps to Reproduce Updated | |
2012-07-18 21:12 | c_schmitz | Assigned To | => DenisChenu |
2012-07-18 21:12 | c_schmitz | Status | new => assigned |
2012-07-19 18:01 | DenisChenu | File Added: limesurvey_survey_39514.lss | |
2012-07-19 18:01 | DenisChenu | File Deleted: limesurvey_survey_exclusive-bug.lss | |
2012-07-19 18:02 | DenisChenu | File Deleted: limesurvey_survey_39514.lss | |
2012-07-19 18:03 | DenisChenu | File Added: limesurvey_survey_39514.lss | |
2012-07-19 18:05 | DenisChenu | Note Added: 19809 | |
2012-07-19 18:05 | DenisChenu | Assigned To | DenisChenu => TMSWhite |
2012-07-19 20:11 | TMSWhite | Note Added: 19810 | |
2012-07-19 20:11 | TMSWhite | Assigned To | TMSWhite => |
2012-07-19 20:11 | TMSWhite | Status | assigned => acknowledged |
2012-07-19 20:32 | DenisChenu | Note Added: 19811 | |
2012-07-19 20:37 | DenisChenu | Note Added: 19813 | |
2012-07-19 20:38 | TMSWhite | Note Added: 19814 | |
2012-07-19 20:42 | TMSWhite | Note Added: 19815 | |
2012-10-11 14:53 | DenisChenu | Note Added: 21226 | |
2013-03-12 14:51 | DenisChenu | Relationship added | duplicate of 07315 |
2013-03-12 14:51 | DenisChenu | Status | acknowledged => closed |
2013-03-12 14:51 | DenisChenu | Assigned To | => DenisChenu |
2013-03-12 14:51 | DenisChenu | Resolution | open => fixed |
2013-03-12 14:51 | DenisChenu | Fixed in Version | => 2.00+ |