View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
04607Bug reportsOtherpublic2010-10-20 21:48
Reportermarkjoe Assigned Tolemeur  
PrioritynormalSeverityminor 
Status closedResolutionno change required 
Product Version1.87+ 
Fixed in Version1.90+ 
Summary04607: Mandatory questions not being enforced
Description

In very specific situations, unanswered mandatory questions do not stop user from progressing to next page or completing survey.
If the survey is not activated, the mandatory questions are enforced.

Steps To Reproduce

Create new survey with a single multiple choice with 'other' option.
Activate survey
Take survey and submit without selecting and answer.

Additional Information

I do not know where this originates, but when checking mandatory answers the text entered for the 'other' field is coming through as a single space.
Since 0 != ' ', it is considered answered.
In file: index.php, function: checkmandatorys($move, $backok=null), line: 1356
I added a trim to get by.
form:
if (isset($_SESSION[$cm]) && ($_SESSION[$cm] == "0" || $_SESSION[$cm]))
to:
if (isset($_SESSION[$cm]) && ($_SESSION[$cm] == "0" || trim($_SESSION[$cm])))

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)8406
I will donate to the project if issue is resolved
BrowserFF3.6.x
Database type & versionMS SQL 2005
Server OS (if known)Windows Server 2003
Webserver software & version (if known)Apache 2.2.6
PHP Version5.2.4
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

lemeur

lemeur

2010-09-18 09:15

reporter   ~12859

Last edited: 2010-09-18 09:19

I can't reproduce, and I don't understand why you have a space in the 'Other' SESSION variable, you should have an emptu string instead.

I've tested with teh same browser as you!

Can you post a test survey ?


I just noticed you're not using 1.90+, please update as I've tested with 1.90+ and can't reproduce the pb so that it might already be fixed.

Regards,
Thibault

markjoe

markjoe

2010-09-27 18:37

reporter   ~12910

I didn't understand why there was a space in the 'Other' SESSION variable either. I understand it should be an empty string, this is why I submitted it as a possible bug.

I am unable to post a public survey at this time, I will look at 1.90+ and see if I can reproduce the problem there.

lemeur

lemeur

2010-10-02 21:13

reporter   ~12980

waiting for your input then.

lemeur

lemeur

2010-10-16 22:33

reporter   ~13219

feedback please... or I'll have to close the ticket.

markjoe

markjoe

2010-10-20 21:33

reporter   ~13290

Sorry for the delay.
I did a fresh install of 1.90+ and was unable to recreate the problem.

lemeur

lemeur

2010-10-20 21:48

reporter   ~13291

Ok, thanks for the feedback.
Closing the ticket then.

Thibault

Issue History

Date Modified Username Field Change
2010-09-17 19:12 markjoe New Issue
2010-09-18 08:51 lemeur Assigned To => lemeur
2010-09-18 08:51 lemeur Status new => assigned
2010-09-18 09:15 lemeur Note Added: 12859
2010-09-18 09:15 lemeur Status assigned => feedback
2010-09-18 09:19 lemeur Note Edited: 12859
2010-09-27 18:37 markjoe Note Added: 12910
2010-09-27 18:37 markjoe Status feedback => assigned
2010-10-02 21:13 lemeur Note Added: 12980
2010-10-02 21:13 lemeur Status assigned => feedback
2010-10-16 22:33 lemeur Note Added: 13219
2010-10-20 21:33 markjoe Note Added: 13290
2010-10-20 21:33 markjoe Status feedback => assigned
2010-10-20 21:48 lemeur Note Added: 13291
2010-10-20 21:48 lemeur Status assigned => closed
2010-10-20 21:48 lemeur Resolution open => no change required
2010-10-20 21:48 lemeur Fixed in Version => 1.90+
2010-10-25 00:18 c_schmitz Category Survey Taking => (No Category)