View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
09655Bug reportsExpression Managerpublic2015-06-12 12:41
Reporterpvdemael Assigned ToDenisChenu  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.05+ 
Fixed in Version2.06+ 
Summary09655: Less Then operator yields rendering error
Description

Using Less Then or Equal (<=) operator in a question, the expression is rendered wrong after saving the question. This is visible in the Question view, the dropdown box in the Question Group and the Change Group Order view.
This is not visible in the Survey Logic view.

This problem does NOT happen with the Greater Then or Equal operator (>=)

Steps To Reproduce
  1. Create a boiler plate question with {if(1 <= 1,0,1)} as question text
  2. Save and close question
  3. Check Question in subsequent window or by clicking Change Group Order
Additional Information

Instead of rendered like
if(1 <= 1, 0, 1)
the expression will be rendered like
{if(1

The if clause is not necessary, it also happens with just the expresson (1 <= 1).
This gives problems with nested if clauses.

TagsNo tags attached.
Attached Files
LE_problem.zip (121,904 bytes)
Bug heat4
Complete LimeSurvey version number (& build)2.05+ Build 150520
I will donate to the project if issue is resolvedNo
Browser
Database type & versionmysql Ver 14.14 Distrib 5.5.37,
Server OS (if known)Linux imaging 3.11.0-26-generic #45-Ubuntu SMP (14.04 LTS)
Webserver software & version (if known)Apache/2.2.22 (Ubuntu)
PHP VersionPHP 5.4.6-1ubuntu1.2 (cli)

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2015-06-04 16:48

developer   ~32293

Yes, we need to replace <= by & lt ;= without update other part .

DenisChenu

DenisChenu

2015-06-11 11:25

developer   ~32316

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

DenisChenu

DenisChenu

2015-06-11 11:26

developer   ~32317

Done for Question text and help

c_schmitz

c_schmitz

2015-06-12 12:41

administrator   ~32318

2.06 Build 150612 released

Related Changesets

LimeSurvey: master 95d019cd

2015-06-11 09:25:13

DenisChenu

Details Diff
Fixed issue 09655: Less Then operator yields rendering error
Dev: purify HTML leaving only EM class, span and a.
Dev: Maybe an EM function ?
Affected Issues
09655
mod - application/helpers/expressions/em_core_helper.php Diff File
mod - application/helpers/viewHelper.php Diff File
mod - application/views/admin/survey/Question/questionbar_view.php Diff File
mod - scripts/admin/expression.js Diff File

Issue History

Date Modified Username Field Change
2015-06-01 11:25 pvdemael New Issue
2015-06-01 11:25 pvdemael File Added: LE_problem.zip
2015-06-04 16:48 DenisChenu Note Added: 32293
2015-06-04 16:48 DenisChenu Assigned To => DenisChenu
2015-06-04 16:48 DenisChenu Status new => confirmed
2015-06-11 11:25 DenisChenu Changeset attached => LimeSurvey master 95d019cd
2015-06-11 11:25 DenisChenu Note Added: 32316
2015-06-11 11:25 DenisChenu Resolution open => fixed
2015-06-11 11:26 DenisChenu Note Added: 32317
2015-06-11 11:26 DenisChenu Status confirmed => resolved
2015-06-11 11:26 DenisChenu Fixed in Version => 2.06+
2015-06-12 12:41 c_schmitz Note Added: 32318
2015-06-12 12:41 c_schmitz Status resolved => closed