View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
11072Bug reportsExpression Managerpublic2016-04-30 16:13
ReporterKarel_UTwente Assigned Toollehar  
PriorityimmediateSeverityminor 
Status closedResolutionfixed 
Product Version2.50.x 
Fixed in Version2.50.x 
Summary11072: slider numerical input does not update expression manager
Description

Sliders change their underlying input's values directly - the expression manager is updated through the input's keyup event, and is thus never called.

Steps To Reproduce

Create a question with (multiple?) numerical input.
Create another question that uses the value from the first - either in relevance or directly in text.

Both questions work as expected in 'normal' input field.
If the first question is set to slider layout, the second question is not updated if the slider is moved.

TagsNo tags attached.
Attached Files
Bug heat6
Complete LimeSurvey version number (& build)Version 2.50+ Build 160428
I will donate to the project if issue is resolvedNo
BrowserChrome
Database type & versionMySQL 5.5.46
Server OS (if known)ubuntu4.14
Webserver software & version (if known)Apache/2.4.7 (Ubuntu)
PHP VersionPHP Version 5.5.9-1ubuntu4.14

Users monitoring this issue

There are no users monitoring this issue.

Activities

Karel_UTwente

Karel_UTwente

2016-04-29 11:12

reporter   ~38006

I've added the following to my template.js to fix it, temporarily.

// Ugly hack to force sliders to fire the underlying input's keyup event so in-group expressions are properly updated.
$( document ).ready( function() {
// use both slider-container (latest build) and withslider (current build - 160317).
// TODO: At each LS update, check if issue 11072 has been resolved. If so, remove this hack.
$("div.slider-container input, div.withslider input").change( function() { $(this).keyup() } );
})

ollehar

ollehar

2016-04-29 11:21

administrator   ~38009

We don't trigger keyup in current version. That might be the problem.

Karel_UTwente

Karel_UTwente

2016-04-29 11:27

reporter   ~38012

yep

ollehar

ollehar

2016-04-29 11:34

administrator   ~38015

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

ollehar

ollehar

2016-04-29 11:34

administrator   ~38016

Should be fixed. Can you pull and check if it works for you?

Karel_UTwente

Karel_UTwente

2016-04-29 11:53

reporter   ~38018

I quickly did a drop-in replace of the affected file, seems to have done the trick, thanks!

c_schmitz

c_schmitz

2016-04-30 16:13

administrator   ~38040

Version 2.50+ Build 160430 released

Related Changesets

LimeSurvey: master 0dfb870a

2016-04-29 09:33:39

ollehar

Details Diff
Fixed issue 11072: slider numerical input does not update expression
manager

Dev: Run EM related code in slideStop event.
Affected Issues
11072
mod - application/views/survey/questions/multiplenumeric/rows/sliders/answer_row.php Diff File

Issue History

Date Modified Username Field Change
2016-04-28 14:44 Karel_UTwente New Issue
2016-04-28 14:44 Karel_UTwente File Added: limesurvey_survey_714962.lss
2016-04-28 15:43 c_schmitz Assigned To => LouisGac
2016-04-28 15:43 c_schmitz Status new => assigned
2016-04-28 15:43 c_schmitz Priority none => high
2016-04-28 15:44 c_schmitz Priority high => immediate
2016-04-29 11:09 ollehar Assigned To LouisGac => ollehar
2016-04-29 11:12 Karel_UTwente Note Added: 38006
2016-04-29 11:21 ollehar Note Added: 38009
2016-04-29 11:22 ollehar Assigned To ollehar => LouisGac
2016-04-29 11:27 Karel_UTwente Note Added: 38012
2016-04-29 11:34 ollehar Changeset attached => LimeSurvey master 0dfb870a
2016-04-29 11:34 ollehar Note Added: 38015
2016-04-29 11:34 ollehar Assigned To LouisGac => ollehar
2016-04-29 11:34 ollehar Resolution open => fixed
2016-04-29 11:34 ollehar Note Added: 38016
2016-04-29 11:34 ollehar Status assigned => resolved
2016-04-29 11:34 ollehar Fixed in Version => 2.5
2016-04-29 11:53 Karel_UTwente Note Added: 38018
2016-04-30 16:13 c_schmitz Note Added: 38040
2016-04-30 16:13 c_schmitz Status resolved => closed