View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
06163Bug reportsSurvey editingpublic2012-06-07 11:02
Reportertfj Assigned ToTMSWhite  
PriorityhighSeveritypartial_block 
Status closedResolutionfixed 
Product Version1.92+ 
Fixed in Version1.92+ 
Summary06163: error in mandatory array_filter-ed multi-numeric and multiple-short questions
Description

I have seen questions about this on the forum, but it appears that this issue still persists. I have a multiple choice question with several options. The next two questions are "Multiple numerical input" questions, based through an array filter on the first question. All of these questions are mandatory.

When I run the Survey Logic checker, no errors appear, either on the group or on the questions themselves. Previously, I did make a correction -- I had the wrong case for the Array Filter ("legal3" instead of "Legal3"). Once I made that correction, the Survey Logic checker came up clean.

When I run the survey, it appears to work properly until I hit the "Next" button. I am then told that I have not answered all of the mandatory questions, although I can plainly see numerical answers in each of the choices.

I have an uneducated suspicion: I think the problem begins when I change the question type or when I make corrections based upon the Survey Logic checker. Everything acts as if the corrections were not completely made internally.

So far, this has not affected older surveys, just newly created ones.

We have a deadline looming and this is a major problem for us.

TagsNo tags attached.
Attached Files
Bug heat6
Complete LimeSurvey version number (& build)120530
I will donate to the project if issue is resolvedNo
BrowserFirefox 12, Chrome 19.0.1084.52 m
Database type & versionmySQL 5.1.37
Server OS (if known)Windows 7 on a test PC
Webserver software & version (if known)Apache 2.2.21
PHP Version5.3.8

Users monitoring this issue

There are no users monitoring this issue.

Activities

TMSWhite

TMSWhite

2012-06-01 22:05

reporter   ~19031

please upload a sample survey demonstrating this issue.

tfj

tfj

2012-06-01 22:27

reporter   ~19032

I uploaded a sample in the last posting, made up of the three questions that are giving us problems. I figure we are doing something wrong on this end, but this is the first time we have had this particular problem with LimeSurvey.

TMSWhite

TMSWhite

2012-06-01 23:39

reporter   ~19035

The core problem is that array_filter did not apply to multiple numeric and multiple short text question types until 1.92. This was an accidental oversight.

TMSWhite

TMSWhite

2012-06-01 23:43

reporter   ~19036

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=8619

TMSWhite

TMSWhite

2012-06-02 00:00

reporter   ~19037

Fix committed to Yii branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=8620

TMSWhite

TMSWhite

2012-06-02 00:49

reporter   ~19038

Fix committed to Yii branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=8621

tfj

tfj

2012-06-04 15:00

reporter   ~19051

I copied over the two corrected php files, LimeExpressionManger.php and qanda.php instead of waiting for the next build, in order to better accommodate our deadline. Here is the error message I receive when attempting to run the example survey I sent to you:

Fatal error: Call to undefined method ExpressionManager::SetSurveyMode() in C:\xampp\htdocs\limesurvey\classes\expressions\LimeExpressionManager.php on line 2577

Is there something else I need to copy over?

Thanks!

tfj

TMSWhite

TMSWhite

2012-06-04 16:23

reporter   ~19059

A new 1.92+ upgrade is likely to be released tomorrow. You might be able to just replace C:\xampp\htdocs\limesurvey\classes\expressions\ExpressionManager.php, but there might be other dependencies too, so probably better to wait for the official upgrade.

c_schmitz

c_schmitz

2012-06-07 11:02

administrator   ~19099

New 1.91+ build released.

Related Changesets

LimeSurvey: master a47b864e

2012-06-01 14:40:32

TMSWhite

Details Diff
Fixed issue 06163: error in mandatory array_filter-ed multi-numeric and multiple-short questions
Dev Array Filter was not valid for multiple numeric and multiple short text prior to version 1.92.
Dev added core functionality, plus expected color coding of unanswered mandatory questions
Affected Issues
06163
mod - classes/expressions/LimeExpressionManager.php Diff File
mod - qanda.php Diff File

LimeSurvey: Yii a28d082e

2012-06-01 14:59:24

TMSWhite

Details Diff
Fixed issue 06163: error in mandatory array_filter-ed multi-numeric and multiple-short questions
Dev Array Filter was not valid for multiple numeric and multiple short text prior to version 1.92.
Dev added core functionality, plus expected color coding of unanswered mandatory questions
Affected Issues
06163
mod - application/helpers/expressions/em_manager_helper.php Diff File
mod - application/helpers/qanda_helper.php Diff File

Issue History

Date Modified Username Field Change
2012-06-01 21:21 tfj New Issue
2012-06-01 22:05 TMSWhite Note Added: 19031
2012-06-01 22:25 tfj File Added: limesurvey_survey_83661.lss
2012-06-01 22:27 tfj Note Added: 19032
2012-06-01 22:36 c_schmitz Assigned To => TMSWhite
2012-06-01 22:36 c_schmitz Status new => assigned
2012-06-01 23:35 TMSWhite Summary Array filter unreliable => error in mandatory array_filter-ed multi-numeric and multiple-short questions
2012-06-01 23:39 TMSWhite Note Added: 19035
2012-06-01 23:43 TMSWhite Changeset attached => LimeSurvey master a47b864e
2012-06-01 23:43 TMSWhite Note Added: 19036
2012-06-01 23:43 TMSWhite Resolution open => fixed
2012-06-01 23:44 TMSWhite Status assigned => resolved
2012-06-01 23:44 TMSWhite Fixed in Version => 1.92+
2012-06-02 00:00 TMSWhite Changeset attached => LimeSurvey Yii a28d082e
2012-06-02 00:00 TMSWhite Note Added: 19037
2012-06-02 00:49 TMSWhite Changeset attached => LimeSurvey Yii 5e61841a
2012-06-02 00:49 TMSWhite Note Added: 19038
2012-06-02 00:52 TMSWhite Changeset removed LimeSurvey Yii 5e61841a =>
2012-06-04 15:00 tfj Note Added: 19051
2012-06-04 16:23 TMSWhite Note Added: 19059
2012-06-07 11:02 c_schmitz Note Added: 19099
2012-06-07 11:02 c_schmitz Status resolved => closed
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing