View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
10219Bug reportsSurvey editingpublic2016-05-12 10:38
Reporterervit Assigned ToLouisGac 
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.06+ 
Fixed in Version2.50.x 
Summary10219: 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.

TagsNo tags attached.
Attached Files
tip_bug.png (194,724 bytes)
tip_style_bug.lss (15,298 bytes)
Bug heat8
Complete LimeSurvey version number (& build)151215
I will donate to the project if issue is resolvedNo
BrowserFirefox 43
Database type & versionMySQL
Server OS (if known)Linux
Webserver software & version (if known)GoDaddy hosting config 2.2
PHP Version5.3

Users monitoring this issue

There are no users monitoring this issue.

Activities

ervit

ervit

2016-01-11 09:30

reporter   ~34260

Last edited: 2016-01-11 09:32

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.

DenisChenu

DenisChenu

2016-01-13 08:40

developer   ~34269

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 ?

ervit

ervit

2016-01-14 12:25

reporter   ~34278

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.

DenisChenu

DenisChenu

2016-01-14 13:12

developer   ~34279

Yes, seems to be this , i see it too with "relevance question" , thanks :).

ervit

ervit

2016-01-14 13:15

reporter   ~34280

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).

LouisGac

LouisGac

2016-05-11 15:30

developer   ~38351

This bug has been resolved in 2.5
(Olle provided a specific ID for each uploader)

c_schmitz

c_schmitz

2016-05-12 10:38

administrator   ~38424

Version 2.50 Build 160512 released

Issue History

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 LouisGac Note Added: 38351
2016-05-11 15:30 LouisGac Status new => resolved
2016-05-11 15:30 LouisGac Fixed in Version => 2.5
2016-05-11 15:30 LouisGac Resolution open => fixed
2016-05-11 15:30 LouisGac 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