View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
05686Bug reportsConditionspublic2012-03-14 21:08
Reporterjpbacker Assigned ToTMSWhite  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.92RC2 
Fixed in Version1.92RC3 
Summary05686: Dynamic Image with Expression Manager (SPAN problem)
Description

Hello,

I would like to create a dynamic image based on previous answers. I have a problem with the SPAN codes which are placed automatically via the expression manager.

For example, i've asked your age. Now i want to show your age as a image. So i inserted the following code: <img scr=images/{age}.jpg>.

The problem is that the expression manager puts a SPAN before the value. So the value looks like this: <span id='LEMtailor_Q_207_33'>3</span> and my result image looks like: <img scr=images/<span id='LEMtailor_Q_207_33'>3</span>.jpg>. I've also tried it via {INSERTANS:3763X24X206} but that gives the same problem.

Is there a solutions for this problem?

Thank you in advance!

Steps To Reproduce
  1. ask question (example: age)
  2. next page
  3. Input img src tag with reference to previous question via Expression Manager <img scr="images/{age}.jpg">
  4. Image won't work; there will be a <span> before the result
Additional Information

Please assign it to developer "TMSWhite"

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)19.2
I will donate to the project if issue is resolvedNo
BrowserSafari & Firefox
Database type & versionSQL 5.1.49
Server OS (if known)Linux
Webserver software & version (if known)Apache 2.0 Handler
PHP VersionPHP/5.3.3-7+squeeze3

Relationships

related to 05785 closedTMSWhite in all-in-one survey mode, questions whose tailoring depends entirely on out-of-group variables is not happening 

Users monitoring this issue

There are no users monitoring this issue.

Activities

jpbacker

jpbacker

2012-01-24 19:45

reporter   ~16949

Dear TMSWhite,

Thank you for your feedback. I've downloaded the new ExpressionManager.php. But the new version still has the current problem with dynamic images (or i'm doing something wrong; also very possible). I've made a -workaround- with my limited PHP knowledge by editing line 1939.

CURRENT
$resolvedParts[] = "<span id='" . $idName . "'>" . $resolvedPart . "</span>";

NEW
$resolvedParts[] = $resolvedPart;

TMSWhite

TMSWhite

2012-01-24 20:32

reporter   ~16950

I'm working on a permanent fix for this as we speak.

TMSWhite

TMSWhite

2012-01-24 20:58

reporter   ~16952

Fixed in revision 12187

jpbacker

jpbacker

2012-01-25 15:15

reporter   ~16972

Thank you very much!

c_schmitz

c_schmitz

2012-01-30 18:41

administrator   ~17063

1.92RC3 released

Related Changesets

LimeSurvey: Yii fde20447

2012-01-24 12:00:39

TMSWhite

Details Diff
Fixed issue 05686: Dynamic Image with Expression Manager (SPAN problem)
Dev Expressions that are only comprised solely of off-screen variables will be statically substituted (e.g. not use a <span> tag)

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_yii@12188 b72ed6b6-b9f8-46b5-92b4-906544132732
Affected Issues
05686
mod - application/helpers/expressions/em_core_helper.php Diff File

Issue History

Date Modified Username Field Change
2012-01-24 15:05 jpbacker New Issue
2012-01-24 15:05 jpbacker Status new => assigned
2012-01-24 15:05 jpbacker Assigned To => lemeur
2012-01-24 15:08 tpartner Assigned To lemeur => TMSWhite
2012-01-24 19:45 jpbacker Note Added: 16949
2012-01-24 20:32 TMSWhite Note Added: 16950
2012-01-24 20:58 TMSWhite Note Added: 16952
2012-01-24 20:58 TMSWhite Status assigned => resolved
2012-01-24 20:58 TMSWhite Resolution open => fixed
2012-01-24 21:46 c_schmitz Fixed in Version => 1.92RC3
2012-01-25 15:15 jpbacker Note Added: 16972
2012-01-30 18:41 c_schmitz Note Added: 17063
2012-01-30 18:41 c_schmitz Status resolved => closed
2012-02-08 21:23 TMSWhite Relationship added related to 05785
2012-03-14 21:08 TMSWhite Changeset attached => Import 2012-03-09 13:30:34 Yii fde20447