View Issue Details

This bug affects 1 person(s).
 14
IDProjectCategoryView StatusLast Update
06318Bug reportsExpression Managerpublic2012-07-18 16:33
Reportermaan Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.92+ 
Fixed in Version1.92+ 
Summary06318: Validation the array question
Description

I am trying to use em_sq_validation

But even a very simple eq not working

I downloaded the sample ls2_test_em_sq_validation sample for test and I am getting the same problem

and here is the error :
(VALIDATION: ((sum( ! ((sum(Test_A_1, Test_A2, Test)) == 0)))

as you can see that the rest of the eq is not there

original eq

(sum(Test_A_1, Test_A_2, Test_A_3, Test_A_4, Test_A_5) <= 3) &&
(sum(Test_B_1, Test_B_2, Test_B_3, Test_B_4, Test_B_5) <= 3) &&
(sum(Test_C_1, Test_C_2, Test_C_3, Test_C_4, Test_C_5) <= 3)

TagsNo tags attached.
Attached Files
Error Limesurvey .png (141,291 bytes)
Error2.png (50,690 bytes)   
Error2.png (50,690 bytes)   
QuestionEdit.png (129,005 bytes)
Bug heat14
Complete LimeSurvey version number (& build)120704
I will donate to the project if issue is resolvedNo
Browsermozilla , explorer , Safari
Database type & versionSql server 2008
Server OS (if known)Windows 7
Webserver software & version (if known)IIS7
PHP Version5.3.8

Users monitoring this issue

c_schmitz, maan, Mazi

Activities

TMSWhite

TMSWhite

2012-07-11 17:33

reporter   ~19712

It is working fine for me with ./docs/demosurveys/ls2_test_em_sq_validation.lss using version 120711.

Can you try version 120711?

If it still doesn't work, please attach a copy of the actual survey you are using (if downloaded from the wiki, perhaps it got corrupted there).

I'm attaching the survey that works for me.

maan

maan

2012-07-11 21:00

reporter   ~19715

Hi

I did the following steps

1- install a fresh copy limesurvey version 120711
2- import the survey from ./docs/demosurveys/ls2_test_em_sq_validation.lss
3 - go to group G2
4- go to question test
5- click on QA Icon .

the result I got the same error

I am using IIS7 with php version 5.3.8 and sql server 2008 R2 connection to it using mssqlnative driver

what you think the problem is ?

TMSWhite

TMSWhite

2012-07-11 21:33

reporter   ~19716

I still can't reproduce the problem. I'm using MySql, and don't have access to Sql Server.

Perhaps the 'value' field is being truncated. In my lime_question_attributes table, the 'value' field is of type 'text'. In mssqlnative, it should be varchar(max). What is it in your database?

Are you upgrading from a prior version, by any chance? Looks like database versions prior to 135 (which is pretty old) had a shorter varchar field for 'value'.

maan

maan

2012-07-11 21:53

reporter   ~19717

hi

no I am not upgrading (i am using a new database )

as you can see from the last attachments the value is stored correctly in the database

plus when I am editing the question , It is there .

the value truncated only when showing the logic file

TMSWhite

TMSWhite

2012-07-11 22:07

reporter   ~19718

That's bizarre. Even if Test_A_3 is somehow being converted to using a Microsoft-specific underscore character, I still don't see why it would display that way.

If I could reproduce the problem, I could debug it, but as it is, I'm at a loss.

Does the survey run properly, or is it just a problem in Show Logic File?

maan

maan

2012-07-11 22:25

reporter   ~19719

Unfortunately the problem is in both the the show logic file as well as the survey; it doesnt run well.
The survey only runs well if i use a maximum of 2 parameters that have short codes.

Thanks for all your help. I really hope we sort this out.

TMSWhite

TMSWhite

2012-07-11 22:32

reporter   ~19721

Can you try a fresh install using MySql to see if that makes a difference?
I have equations with 50+ variables in them, spanning > 2048 characters with no trouble at all.

maan

maan

2012-07-11 23:04

reporter   ~19722

Hi

It is working with mysql .

TMSWhite

TMSWhite

2012-07-12 04:48

reporter   ~19724

Carsten or Mazi - who can test / debug this on a SQL Server platform?

Mazi

Mazi

2012-07-12 12:02

updater   ~19725

Carsten has MS SQL installed, I only use MySQL.

maan

maan

2012-07-14 15:54

reporter   ~19728

Any update ?

c_schmitz

c_schmitz

2012-07-18 14:38

administrator   ~19754

I can reproduce the issue on MSSQL, now let me find it :)

c_schmitz

c_schmitz

2012-07-18 15:08

administrator   ~19755

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

c_schmitz

c_schmitz

2012-07-18 15:57

administrator   ~19763

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

c_schmitz

c_schmitz

2012-07-18 16:33

administrator   ~19773

1.92+ version released.

Related Changesets

LimeSurvey: master 79f6587f

2012-07-18 06:07:42

c_schmitz

Details Diff
Fixed issue 06318: Attributes/validation cut off when checking with EM Affected Issues
06318
mod - classes/expressions/LimeExpressionManager.php Diff File

LimeSurvey: Yii 8d6b7263

2012-07-18 06:07:55

c_schmitz

Details Diff
Fixed issue 06318: Attributes/validation cut off when checking with EM Affected Issues
06318
mod - application/helpers/expressions/em_manager_helper.php Diff File

Issue History

Date Modified Username Field Change
2012-07-11 16:58 maan New Issue
2012-07-11 16:58 maan Status new => assigned
2012-07-11 16:58 maan Assigned To => TMSWhite
2012-07-11 16:58 maan File Added: Error Limesurvey .png
2012-07-11 16:59 maan Issue Monitored: maan
2012-07-11 17:33 TMSWhite Note Added: 19712
2012-07-11 17:34 TMSWhite File Added: ls2_test_em_sq_validation.lss
2012-07-11 17:34 TMSWhite Status assigned => feedback
2012-07-11 20:56 maan File Added: Error2.png
2012-07-11 21:00 maan Note Added: 19715
2012-07-11 21:00 maan Status feedback => assigned
2012-07-11 21:33 TMSWhite Note Added: 19716
2012-07-11 21:52 maan File Added: QuestionAttributeTableStructure.png
2012-07-11 21:52 maan File Added: QuestionEdit.png
2012-07-11 21:53 maan Note Added: 19717
2012-07-11 22:07 TMSWhite Note Added: 19718
2012-07-11 22:25 maan Note Added: 19719
2012-07-11 22:32 TMSWhite Note Added: 19721
2012-07-11 23:04 maan Note Added: 19722
2012-07-12 04:47 TMSWhite Issue Monitored: c_schmitz
2012-07-12 04:48 TMSWhite Issue Monitored: Mazi
2012-07-12 04:48 TMSWhite Note Added: 19724
2012-07-12 04:48 TMSWhite Assigned To TMSWhite =>
2012-07-12 04:48 TMSWhite Status assigned => new
2012-07-12 12:02 Mazi Note Added: 19725
2012-07-14 15:54 maan Note Added: 19728
2012-07-14 16:53 c_schmitz Assigned To => c_schmitz
2012-07-14 16:53 c_schmitz Status new => assigned
2012-07-18 14:38 c_schmitz Note Added: 19754
2012-07-18 15:08 c_schmitz Changeset attached => LimeSurvey master 79f6587f
2012-07-18 15:08 c_schmitz Note Added: 19755
2012-07-18 15:08 c_schmitz Resolution open => fixed
2012-07-18 15:08 c_schmitz Status assigned => resolved
2012-07-18 15:08 c_schmitz Fixed in Version => 1.92+
2012-07-18 15:57 c_schmitz Changeset attached => LimeSurvey Yii 8d6b7263
2012-07-18 15:57 c_schmitz Note Added: 19763
2012-07-18 16:33 c_schmitz Note Added: 19773
2012-07-18 16:33 c_schmitz Status resolved => closed
2021-08-02 22:11 guest Bug heat 8 => 14