View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
13055Bug reportsSurvey editingpublic2018-01-15 10:39
Reporterabc99 Assigned Tomarkusfluer 
PrioritynoneSeveritypartial_block 
Status closedResolutionfixed 
Product Version3.0.0-rc.x 
Fixed in Version3.0.0-rc.x 
Summary13055: Custom css classes for questions are not inserted correctly into the html - missing space
Description

The FIRST css class you enter in the question editors 'display' section (see screenshot, the ABC)
.. is inserted into the html without a leading space, resulting in it being 'concatenated' with any preceding css class (see second screenshot, html source from the survey preview).

Obviously then the css class has no effect in the browser..

(if you add more than one css class - with spaces between, as the documentation says - the NEXT classes are inserted correctly, see the DEF class in the screenshot )

Steps To Reproduce

In a question, add a custom css class, preview the survey and watch the css class in the html source.

Additional Information

Workaround: you can add a dummy css class name as the first css class, and then put in the 'real' css classnames afterwards (with spaces between, as the tooltip says).
You can't fix it by adding a space character before the first custom css class (spaces are removed).

TagsNo tags attached.
Attached Files
question_editor.PNG (6,808 bytes)   
question_editor.PNG (6,808 bytes)   
html.PNG (5,531 bytes)   
html.PNG (5,531 bytes)   
Bug heat4
Complete LimeSurvey version number (& build)3.0.0-RC.3, pulled from github last week
I will donate to the project if issue is resolvedNo
Browserchrome - latest
Database type & version332
Server OS (if known)linux
Webserver software & version (if known)N/A
PHP Version7.1

Users monitoring this issue

There are no users monitoring this issue.

Activities

markusfluer

markusfluer

2017-12-21 17:31

administrator   ~45367

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

c_schmitz

c_schmitz

2018-01-15 10:39

administrator   ~45667

Version 3.0.3 released.

Related Changesets

LimeSurvey: master 42793bce

2017-12-21 17:12:27

markusfluer

Details Diff
Fixed issue 13055: Custom css classes for questions are not inserted correctly into the html - missing space Affected Issues
13055
mod - application/core/LS_Twig_Extension.php Diff File
mod - assets/scripts/admin/questions.js Diff File

Issue History

Date Modified Username Field Change
2017-12-18 20:08 abc99 New Issue
2017-12-18 20:08 abc99 File Added: question_editor.PNG
2017-12-18 20:08 abc99 File Added: html.PNG
2017-12-21 17:12 markusfluer Assigned To => markusfluer
2017-12-21 17:12 markusfluer Status new => resolved
2017-12-21 17:12 markusfluer Resolution open => fixed
2017-12-21 17:12 markusfluer Fixed in Version => 3.0.0-rc.x
2017-12-21 17:31 markusfluer Changeset attached => LimeSurvey master 42793bce
2017-12-21 17:31 markusfluer Note Added: 45367
2018-01-15 10:39 c_schmitz Note Added: 45667
2018-01-15 10:39 c_schmitz Status resolved => closed
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing