View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
10219 | Bug reports | Survey editing | public | 2016-01-11 08:34 | 2016-05-12 10:38 |
Reporter | ervit | Assigned To | |||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 2.06+ | ||||
Fixed in Version | 2.50.x | ||||
Summary | 10219: File upload tip different classes when more than one on one page | ||||
Description | As shown in the screenshot below, if there are more than one file upload questions shown on one page, only the first one's tip has "good" class, the subsequent ones will have "emtip error" class. As a result, the first such question shows the "Please upload at most one file" tip in green font with an "i" symbol, but all the subsequent ones - in red with a "!" symbol. If I have the second question shown on a separate page (preview question), it is shown with the green tip ("good" class). The screenshot also shows the HTML code for the second tip (the highlighting by the Inspector tool hides the red font, but trust me, it's there) | ||||
Steps To Reproduce | Create several identical file upload questions with limits on the number of files. --> Preview group --> voila | ||||
Additional Information | I think the same formatting error appears with Numerical-only questions, as I had noticed the same inconsistent red/green behavior with them before, but didn't pay much attention. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 8 | ||||
Complete LimeSurvey version number (& build) | 151215 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | Firefox 43 | ||||
Database type & version | MySQL | ||||
Server OS (if known) | Linux | ||||
Webserver software & version (if known) | GoDaddy hosting config 2.2 | ||||
PHP Version | 5.3 | ||||
Looks like it is somehow linked to either Relevance or to the HTML generation script. The questions shown in the screenshot are both conditioned by a relevance formula linked to some checkboxes earlier on the page. However, the difference is that [ceoID] is by default with relevance=1, while the [cooID] with relevance=0 at page load (i.e. hidden until the user clicks the relevant check ox). When I uncheck the box for the [ceoID] question (making its relevance=0), it disappears (as expected). When I check it back (relevance=1), it appears, but now it's "error" class with red text and the "!" symbol. So somehow the formatting depends on when the question is shown: at page load, or afterwards. |
|
I see this error sometimes, hard to find where/how to reproduce exactly. And sems it's a new bugh. Can you try to make the smallest and simple survey for testing purpose and attach here ? |
|
I've uploaded the survey (tip_style_bug.lss). I think the bug depends on hide/show logic in the relevance engine. The survey shows two file upload questions, which are ok at first, but as soon as you uncheck the relevance checkbox and check it back, the style changes. so maybe that's why it was hard to catch. |
|
Yes, seems to be this , i see it too with "relevance question" , thanks :). |
|
My pleasure. I suspect there is a similar bug with other tips. I've seen it at least once with Numeric only tip, but have not tested. I imagine fixing this will fix it everywhere since it's style-specific (probably). |
|
This bug has been resolved in 2.5 |
|
Version 2.50 Build 160512 released |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2016-01-11 08:34 | ervit | New Issue | |
2016-01-11 08:34 | ervit | File Added: tip_bug.png | |
2016-01-11 09:30 | ervit | Note Added: 34260 | |
2016-01-11 09:32 | ervit | Note Edited: 34260 | |
2016-01-13 08:40 | DenisChenu | Note Added: 34269 | |
2016-01-14 12:24 | ervit | File Added: tip_style_bug.lss | |
2016-01-14 12:25 | ervit | Note Added: 34278 | |
2016-01-14 13:12 | DenisChenu | Note Added: 34279 | |
2016-01-14 13:15 | ervit | Note Added: 34280 | |
2016-05-11 15:30 |
|
Note Added: 38351 | |
2016-05-11 15:30 |
|
Status | new => resolved |
2016-05-11 15:30 |
|
Fixed in Version | => 2.5 |
2016-05-11 15:30 |
|
Resolution | open => fixed |
2016-05-11 15:30 |
|
Assigned To | => LouisGac |
2016-05-12 10:38 | c_schmitz | Note Added: 38424 | |
2016-05-12 10:38 | c_schmitz | Status | resolved => closed |
2019-11-01 17:25 | c_schmitz | Category | Survey design => Survey editing |