View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
09055Bug reportsPluginspublic2026-11-19 22:23
ReporterDenisChenu Assigned To 
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Summary09055: Bad for attribute for in label for survey settings
Description

The label are inactive in survey settings:
We have <label for="plugin[pluginName][setting]">Label</label><input name="plugin[pluginName][setting]" id="plugin_pluginName_setting" />

Steps To Reproduce

Activate AuditLog, and see HTML produced or try to click on label

Additional Information

Think it's more a Yii bug ? But must rework CHTML::label here.

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)140502
I will donate to the project if issue is resolvedNo
Browsernot relevant (FF23)
Database type & versionMysql 5
Server OS (if known)debian/linux
Webserver software & version (if known)apache
PHP VersionPHP Version 5.4.4
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2014-06-17 12:05

administrator   ~30122

Last edited: 2014-06-17 12:06

The label works just fine. Just bootstrap replaces the original select with its own version (and hides the original select) - not mending the label accordingly.

DenisChenu

DenisChenu

2014-06-17 12:24

developer   ~30124

Last edited: 2014-06-17 12:26

Not for survey setting (forme).

Click on label of a select in global settings : select2 is selected
Click on label of a select in survey settings : select2 is NOT selected

But no js error now (since update of jquery ?)

Confirm
label for plugin[exampleSettings][select]
select id plugin_exampleSettings_select

But only for select (then select2/Yii).

Very little bug here :)

c_schmitz

c_schmitz

2014-06-17 13:54

administrator   ~30125

I meant the label works in general if the related select box would be visible.

But it is not visible. The problem is not Yii but bootstrap.

A label points to a name not an ID.

DenisChenu

DenisChenu

2014-06-17 14:29

developer   ~30128

No the label is for id, not name : http://www.w3.org/wiki/HTML/Elements/label if there are an id.
It's for radio list : need to be id, not name.

The javacript to select the select2(js) is OK in global settings.

And yes : think it's a TbSelect2.php bug/misfunction/misusing :)

c_schmitz

c_schmitz

2026-11-19 22:23

administrator   ~87722

In LimeSurvey 7 the settings widget used for plugin survey settings sets the label 'for' attribute to the generated field id (CHtml::getIdByName), so labels point to the right input. Closing as fixed.

Issue History

Date Modified Username Field Change
2014-05-27 10:07 DenisChenu New Issue
2014-06-17 12:05 c_schmitz Note Added: 30122
2014-06-17 12:06 c_schmitz Note Edited: 30122
2014-06-17 12:06 c_schmitz Project Bug reports => @10@
2014-06-17 12:24 DenisChenu Note Added: 30124
2014-06-17 12:26 DenisChenu Note Edited: 30124
2014-06-17 13:54 c_schmitz Note Added: 30125
2014-06-17 14:29 DenisChenu Note Added: 30128
2026-11-19 22:23 c_schmitz Note Added: 87722
2026-11-19 22:23 c_schmitz Status new => closed
2026-11-19 22:23 c_schmitz Resolution open => fixed
2026-11-19 22:23 c_schmitz Product Version 2.05+ =>