View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
05804Bug reportsSurvey takingpublic2012-03-14 21:08
ReporterTMSWhite Assigned ToTMSWhite  
PriorityhighSeveritypartial_block 
Status closedResolutionfixed 
Product Version1.92RC3 
Target Version1.92RC4Fixed in Version1.92RC4 
Summary05804: Equation question type does not work in all templates
Description

It works in default. It does not work in basic. Have not tested other templates.

Additional Information

The issue is how it extracts the tailored result at run-time to populate the hidden variable.

For the default template, this works fine:

$('#java48741X174X2222').val(escape(jQuery.trim(LEMstrip_tags($('#question2222 .questiontext').find('span').next().next().html()))).replace(/%20/g,' ')

but .questiontext is only used in default and bluengrey, even though it is references within all of the template.css files.

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)12414
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMysql 5.3
Server OS (if known)Windows XP
Webserver software & version (if known)XAMPP
PHP Version5.3

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2012-02-10 14:13

developer   ~17351

Hello Tom,

Can you put a "very little" example survey. Maybe i can have a look to have a more simple jquery way. ;)

TMSWhite

TMSWhite

2012-02-10 16:25

reporter   ~17357

Fixed in revision 12432

DenisChenu

DenisChenu

2012-02-10 17:05

developer   ~17360

Just a little remark.

With revision 12432 , now there are a span arround all question text. Maybe question text have <div> or <p> etc ...

To validate HTML4 restriction, no div in span.
Can put <div> to validate the HTML page.

TMSWhite

TMSWhite

2012-02-10 17:10

reporter   ~17361

<div> is fine, as long as doesn't add any extra padding. I just need a reliable tag to which to attach .em_equation so that I can extract the contents of {QUESTION_TEXT}.

Would <div> do that reliably, or would we need to add to template.css so that div.em_equation doesn't have any extra formatting inherited from other div classes?

c_schmitz

c_schmitz

2012-02-14 14:10

administrator   ~17399

1.92RC4 released

Related Changesets

LimeSurvey: Yii 5ed87d45

2012-02-10 07:34:27

TMSWhite

Details Diff
Fixed issue 05804: Equation question type does not work in all templates
Dev it will now work properly in any existing or customized template

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_yii@12434 b72ed6b6-b9f8-46b5-92b4-906544132732
Affected Issues
05804
mod - application/helpers/SurveyRuntimeHelper.php Diff File
mod - application/helpers/expressions/em_manager_helper.php Diff File
mod - application/helpers/replacements_helper.php Diff File

LimeSurvey: Yii 359bff45

2012-02-10 09:26:49

TMSWhite

Details Diff
Fixed issue 05804: Equation question type does not work in all templates
Dev switched to using <div> instead of <span> to ensure passes HTML4 validation

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

Issue History

Date Modified Username Field Change
2012-02-10 04:50 TMSWhite New Issue
2012-02-10 04:50 TMSWhite Status new => assigned
2012-02-10 04:50 TMSWhite Assigned To => TMSWhite
2012-02-10 14:13 DenisChenu Note Added: 17351
2012-02-10 16:25 TMSWhite Note Added: 17357
2012-02-10 16:25 TMSWhite Status assigned => resolved
2012-02-10 16:25 TMSWhite Fixed in Version => 1.92RC4
2012-02-10 16:25 TMSWhite Resolution open => fixed
2012-02-10 17:05 DenisChenu Note Added: 17360
2012-02-10 17:10 TMSWhite Note Added: 17361
2012-02-14 14:10 c_schmitz Note Added: 17399
2012-02-14 14:10 c_schmitz Status resolved => closed
2012-03-14 21:08 TMSWhite Changeset attached => Import 2012-03-09 13:30:34 Yii 359bff45
2012-03-14 21:08 TMSWhite Changeset attached => Import 2012-03-09 13:30:34 Yii 5ed87d45