View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
12079Bug reportsSurvey editingpublic2017-01-25 15:40
Reportersegui Assigned ToDenisChenu  
PrioritynoneSeveritypartial_block 
Status closedResolutionno change required 
Product Version2.58.x 
Summary12079: Question validation equation not working on Array(Texts) questions
Description

On an Array(Texts) question type set to "Only numbers", an expression entered in "Question validation equation" is not being evaluated when running the survey

Steps To Reproduce

See attached survey structure.

Using this construction as question validation equation for array:

(sum(self.sq_A==0)) && (sum(self.sq_B==0)) && (sum(self.sq_C==0)) && (sum(self.sq_D==0)) && (sum(self.sq_E==0))

When testing the survey and entering values that sum more than zero per row, an error is not triggered and participant is allowed to continue.

TagsNo tags attached.
Attached Files
Bug heat4
Complete LimeSurvey version number (& build)2.58.2+170114
I will donate to the project if issue is resolvedNo
BrowserGoogle Chrome Version 49.0.2623.110
Database type & versionMySQL 14.14 Distrib 5.5.49, for Linux (x86_64)
Server OS (if known)CentOS 6.7
Webserver software & version (if known)Apache/2.2.15 (Unix)
PHP VersionPHP 5.6.21

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2017-01-25 08:29

developer   ~42826

(sum(self.sq_A==0)) : no

(sum(self.sq_A)==0) : yes

DenisChenu

DenisChenu

2017-01-25 08:32

developer   ~42827

Review the equation : you have an error.

segui

segui

2017-01-25 15:40

reporter   ~42836

Thanks Denis. You are right, it was my mistake.

Ginet

Issue History

Date Modified Username Field Change
2017-01-24 16:37 segui New Issue
2017-01-24 16:37 segui File Added: limesurvey_survey_956582.lss
2017-01-25 08:29 DenisChenu Note Added: 42826
2017-01-25 08:32 DenisChenu Assigned To => DenisChenu
2017-01-25 08:32 DenisChenu Status new => closed
2017-01-25 08:32 DenisChenu Resolution open => no change required
2017-01-25 08:32 DenisChenu Note Added: 42827
2017-01-25 15:40 segui Note Added: 42836
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing