View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
09734Bug reportsSurvey editingpublic2016-08-24 15:26
ReporterDenisChenu Assigned Tosammousa  
PrioritynormalSeverityminor 
Status closedResolutionopen 
Summary09734: More quick to see error with 2.0 than 3.0
Description

In 2.0 (and 1.92) : we have directly the question with EM inside after save. Actually : only edit.
EM give a lot of error easily, have a little 'preview' system or "logic validation tab" maybe ?

Steps To Reproduce

-

Additional Information

Actually tab is directly loaded ?
Maybe i can have a look to add some function to
https://github.com/LimeSurvey/LimeSurvey/blob/develop/application/controllers/admin/ExpressionValidate.php

fir question/question group/ sub question and allow to add it in tab ?

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)300615
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database type & versionmysql 5
Server OS (if known)debian/linux
Webserver software & version (if known)nginx
PHP VersionPHP Version 5.6.9-0+deb8u1

Relationships

parent of 09753 closedDenisChenu Lack of sub question for array text and arry number aren't show 

Users monitoring this issue

There are no users monitoring this issue.

Activities

sammousa

sammousa

2015-07-07 10:41

reporter   ~32628

Yes definitely something we need =)

Ideally I'd even want to do it via question validation.

Create a custom validator: http://www.yiiframework.com/wiki/168/create-your-own-validation-rule/

That way you cannot save wrong EM expressions.

DenisChenu

DenisChenu

2015-07-16 00:18

developer   ~32705

Last edited: 2015-07-16 00:21

No,

Saving wrong expression can be done. Simple exemple :

  • Add a question with condition after the question (Q1 only if Q2 > 2 for exemple)
  • Add text with TOKEN:ATTRIBUTE wthout token table
  • Surely a lot of other .

Some solution for "syntax error" seems OK, but logic, think it's a bad idea (a false logic at set 21 can be a good logic at step 28)

ANd more : this need a complete EM system rewriting ....

Issue History

Date Modified Username Field Change
2015-06-30 17:33 DenisChenu New Issue
2015-06-30 17:33 DenisChenu Status new => assigned
2015-06-30 17:33 DenisChenu Assigned To => sammousa
2015-07-07 10:19 DenisChenu Relationship added parent of 09753
2015-07-07 10:41 sammousa Note Added: 32628
2015-07-07 10:41 sammousa Status assigned => confirmed
2015-07-16 00:18 DenisChenu Note Added: 32705
2015-07-16 00:21 DenisChenu Note Edited: 32705
2016-08-24 15:26 c_schmitz Status confirmed => closed
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing