View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
11850Bug reportsSurvey takingpublic2017-07-21 17:08
Reportertpartner Assigned ToDenisChenu  
PrioritynoneSeveritypartial_block 
Status closedResolutionfixed 
Product Version2.55.x 
Target Version3.0.x 
Summary11850: Some slider settings broken when min value is negative or 0
Description

When using a negative slider minimum value, the slider is initially loaded set to the maximum value regardless of the "Starts in middle position" or "Slider initial value" settings. See Q1 and Q2 in the attached survey.

When using 0 as a minimum, the slider is initially loaded set to the maximum value even if "Slider initial value" is set to 0. See Q3 in the attached survey.

TagsNo tags attached.
Attached Files
Bug heat8
Complete LimeSurvey version number (& build) f3fe182
I will donate to the project if issue is resolvedNo
BrowserAll
Database type & versionmysqlnd 5.0.11
Server OS (if known)Windows NT 6.2 build 9200 (Windows 8 Business Edition) i586
Webserver software & version (if known)Apache/2.4.10
PHP Version5.5.19

Relationships

related to 11732 closedDenisChenu Slider reset don't reset to default position 

Users monitoring this issue

teracomp

Activities

DenisChenu

DenisChenu

2016-11-04 13:29

developer   ~41717

@tpartner : just to confirm : 2.5X have same issue ?

tpartner

tpartner

2016-11-04 13:59

partner   ~41718

@DenisChenu, yes, it was tested with 2.55.

tpartner

tpartner

2016-11-04 14:06

partner   ~41719

@DenisChenu, $slider_default is null in quanda_helper.php ~ line 2931.

DenisChenu

DenisChenu

2016-11-04 14:45

developer   ~41720

OK, i already do some fix in 3.0 and have another fix to do : https://bugs.limesurvey.org/view.php?id=11732

DenisChenu

DenisChenu

2016-11-05 11:14

developer   ~41724

Last edited: 2016-11-05 11:15

@tpartner : something i don't understand :
in 2.55 : middele value or initial value seems OK :
in 2.55 : "When using 0 as a minimum, the slider is initially loaded set to the maximum value even if "Slider initial value" is set to 0" : can not reproduce : http://testing.sondages.pro/masterall/index.php/867188
masterall is actually (today) Version 2.55.1

Else in 2.55 or 3.0 : 0 is not set at value when use Slider initial value = 0 . But more is not set even if 'move to 0 (see 0) and go next : http://testing.sondages.pro/answershtml/index.php/867188/lang/en/newtest/Y

tpartner

tpartner

2016-11-05 12:26

partner   ~41726

@DenisChenu, I just pulled 2.55.2 and all sliders in my test survey still initialize at the max value (5), not in the middle or at 0 as the settings indicate. Tested in FF, Chrome and IE 11.

DenisChenu

DenisChenu

2016-11-05 13:38

developer   ~41728

Last edited: 2016-11-05 13:39

... still can not reproduce .... (i just reset/pull)

BUT : i don't fix it in 2.5X : all js is inlined. I rework it for 3.X , then fixing it only in 3.0 (sorry).

tpartner

tpartner

2016-11-05 13:51

partner   ~41729

It's not just me - https://www.limesurvey.org/forum/can-i-do-this-with-limesurvey/107494-allocate-weighting-across-subquestions-ranking-with-percentage#144054

DenisChenu

DenisChenu

2016-11-05 14:01

developer   ~41730

Last edited: 2016-11-05 14:01

I didn't say that :). I just say i don't understand why you have this issue and not me.

For 3.0 : Sorry : but i work hard to move inline JS to one external function to better fixing it. It's one of the reason why i take time to work on 3.0 (and don't publish any plugin, take less time on my project) since one month. Then : i didn't fix it in 2.55. Someone else can do it.

DenisChenu

DenisChenu

2016-11-14 13:30

developer   ~41879

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

c_schmitz

c_schmitz

2017-07-21 17:08

administrator   ~44161

Version 3.0.0-beta.1 released

Related Changesets

LimeSurvey: develop 39ad1176

2016-11-14 13:07:58

DenisChenu

Details Diff
Fixed issue 11732: Slider reset don't reset to default position
New feature : slider_default can set or not the value
Dev: must do more test with , for radix, but 11849
Affected Issues
11732, 11850
mod - application/helpers/qanda_helper.php Diff File
mod - application/helpers/questionHelper.php Diff File
mod - application/views/survey/questions/multiplenumeric/rows/sliders/answer_row.php Diff File
mod - scripts/numeric-slider.js Diff File

LimeSurvey: develop e7cfb97e

2016-11-14 13:29:44

DenisChenu

Details Diff
Fixed issue 11850: Some slider settings broken when min value is negative or 0
Dev: already don ein parent, but update partially js
Affected Issues
11850
mod - scripts/numeric-slider.js Diff File

Issue History

Date Modified Username Field Change
2016-11-01 14:00 tpartner New Issue
2016-11-01 14:00 tpartner File Added: limesurvey_survey_867188.lss
2016-11-04 11:34 teracomp Issue Monitored: teracomp
2016-11-04 12:32 LouisGac Assigned To => DenisChenu
2016-11-04 12:32 LouisGac Status new => assigned
2016-11-04 12:33 LouisGac Target Version 2.55.x => 3.0.x
2016-11-04 13:29 DenisChenu Note Added: 41717
2016-11-04 13:59 tpartner Note Added: 41718
2016-11-04 14:06 tpartner Note Added: 41719
2016-11-04 14:45 DenisChenu Note Added: 41720
2016-11-04 14:45 DenisChenu Relationship added related to 11732
2016-11-05 11:14 DenisChenu Note Added: 41724
2016-11-05 11:15 DenisChenu Note Edited: 41724
2016-11-05 12:26 tpartner Note Added: 41726
2016-11-05 13:38 DenisChenu Note Added: 41728
2016-11-05 13:39 DenisChenu Note Edited: 41728
2016-11-05 13:51 tpartner Note Added: 41729
2016-11-05 14:01 DenisChenu Note Added: 41730
2016-11-05 14:01 DenisChenu Note Edited: 41730
2016-11-14 13:30 DenisChenu Changeset attached => LimeSurvey develop e7cfb97e
2016-11-14 13:30 DenisChenu Note Added: 41879
2016-11-14 13:30 DenisChenu Resolution open => fixed
2016-11-14 13:31 DenisChenu Changeset attached => LimeSurvey develop 39ad1176
2016-11-14 13:31 DenisChenu Status assigned => resolved
2016-11-14 13:31 DenisChenu Fixed in Version => 3.0
2017-07-21 17:08 c_schmitz Note Added: 44161
2017-07-21 17:08 c_schmitz Status resolved => closed
2021-08-02 17:22 guest Bug heat 6 => 8