View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
05476Bug reportsConditionspublic2012-03-14 21:08
Reporterprady Assigned Tolemeur  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.91+ 
Fixed in Version1.91+ 
Summary05476: File upload questions hidden by condition still mandatory
Description

I'd like to set a file upload question with a condition.
If the condition is true and the file upload question is consequently visibile, I'd like it to be mandatory.
The only way I found out is to set the minimum files number to 1, but users are asked to upload a file also when the condition is false and the question is not visible.
They get an error message and can't understand why.

TagsNo tags attached.
Attached Files
Screenshot.png (46,417 bytes)   
Screenshot.png (46,417 bytes)   
Bug heat8
Complete LimeSurvey version number (& build)10951
I will donate to the project if issue is resolvedYes
Browser
Database type & version5.0.92-enterprise-gpl-log
Server OS (if known)Linux
Webserver software & version (if known)Apache/2.2
PHP Version5.2.17

Users monitoring this issue

prady

Activities

prady

prady

2011-09-26 09:55

reporter   ~16321

Last edited: 2011-09-26 09:58

Unfortunately the survey is in Italian.
In the first group, question n 0014 is enabled via condition, and I set it to have 1 file uploaded at least. If it’s not enabled because of the condition, the user gets an error message anyway.
The error message states: one or more files exceeded max size, or are not of the right type, or the min files number has not been reached.

Mazi

Mazi

2011-09-26 10:24

updater   ~16322

Can you reproduce the problem with a small english sample survey?

If so, please attach it because I can not reproduce the problem.

prady

prady

2011-09-26 12:32

reporter   ~16324

Done. Plese check the last attached file.

Thanks.

Mazi

Mazi

2011-09-26 12:40

updater   ~16325

Thanks for providing the test survey. I CAN REPRODUCE this issue: Clicking "no" at the first questions leads to the file upload question being not shown. When clicking submit there is a warning though that parameters of the file upload question (number of answers, file size, ...) are not meet even though the question was never shown and no file was uploaded.

prady

prady

2011-09-26 15:03

reporter   ~16326

That's right. I asked in the forum on how to avoid this behaviour. I wanted to show or hide upload questions via conditions, and make them mandatory if shown.
I explained that the only way I found was to set the min number of file to 1, but I got that problem.
Someone told me it's a bug... I don't know.
Maybe a "mandatory" option like all the other question types would suit for the job...

lemeur

lemeur

2011-09-27 21:45

developer   ~16338

It's a bug for sure.

lemeur

lemeur

2011-09-27 22:34

developer   ~16339

Fixed in buildnumber 11052.

prady

prady

2011-09-28 09:58

reporter   ~16344

Great!
Thanks.

Related Changesets

LimeSurvey: Yii ca00b538

2011-09-27 13:33:24

lemeur

Details Diff
Fixed issue 05476: File upload questions hidden by condition with min file upload set prevent survey submission

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_ci@11053 b72ed6b6-b9f8-46b5-92b4-906544132732
Affected Issues
05476
mod - application/helpers/frontend_helper.php Diff File

Issue History

Date Modified Username Field Change
2011-09-24 02:16 prady New Issue
2011-09-24 02:16 prady Status new => assigned
2011-09-24 02:16 prady Assigned To => lemeur
2011-09-26 09:50 prady File Added: limesurvey_survey_33283.lss
2011-09-26 09:51 prady File Added: Screenshot.png
2011-09-26 09:55 prady Note Added: 16321
2011-09-26 09:55 prady Issue Monitored: prady
2011-09-26 09:58 prady Note Edited: 16321
2011-09-26 10:24 Mazi Note Added: 16322
2011-09-26 10:24 Mazi Status assigned => feedback
2011-09-26 12:32 prady File Added: limesurvey_survey_15468.lss
2011-09-26 12:32 prady Note Added: 16324
2011-09-26 12:32 prady Status feedback => assigned
2011-09-26 12:40 Mazi Note Added: 16325
2011-09-26 15:03 prady Note Added: 16326
2011-09-27 21:45 lemeur Note Added: 16338
2011-09-27 21:45 lemeur Status assigned => confirmed
2011-09-27 22:34 lemeur Note Added: 16339
2011-09-27 22:34 lemeur Status confirmed => resolved
2011-09-27 22:34 lemeur Fixed in Version => 1.91+
2011-09-27 22:34 lemeur Resolution open => fixed
2011-09-28 09:58 prady Note Added: 16344
2011-10-08 22:18 c_schmitz Status resolved => closed
2012-03-14 21:08 lemeur Changeset attached => Import 2012-03-09 13:30:34 Yii ca00b538
2021-08-02 21:18 guest Bug heat 6 => 8