View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
11527 | Bug reports | Survey editing | public | 2016-08-08 13:04 | 2016-08-29 12:39 |
Reporter | Mazi | Assigned To | |||
Priority | none | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 2.50.x | ||||
Target Version | 2.50.x | Fixed in Version | 2.50.x | ||
Summary | 11527: {QUESTION_VALID_MESSAGE} placeholder gets populated with HTML even if no warning exists | ||||
Description | For every question type Limesurvey adds the HTML marked at the attached screenshot after the "question title" and before the "answer-container" DIV. Problem is that the HTMl block/DIV also gets created even if there is no warning text within the DIV. This is a problem when creating a custom template because it adds additional margin/padding for the element which has no content. Solution: Only generate the "questionvalidcontainer" DIV if there is some text to show. | ||||
Steps To Reproduce | Run any survey with the shipped "default" template. | ||||
Additional Information | At former Limesurvey versions one could dynamically add the required DIV for help texts if some text existed by using code like this at the question.pstpl file: For the new structure the code should be similar, example: ...BUT this doesn't work anymore because QUESTION_VALID_MESSAGE now always has some content (the HTML created). | ||||
Tags | No tags attached. | ||||
Bug heat | 10 | ||||
Complete LimeSurvey version number (& build) | 160804 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | Chrome | ||||
Database type & version | MySQL 5 | ||||
Server OS (if known) | Ubuntu | ||||
Webserver software & version (if known) | Apache 2 | ||||
PHP Version | 5.5.9 | ||||
The container has to be rendered, for questions that get updated by javascript. |
|
Thanks for your feedback, Markus. If the container has to be there then it would be nice if the CSS could be adjusted to not create any additional padding/margin. |
|
There are an issue in Expression Manager : We have to find where this is tested. Issue in 2.06 too PS: container are a template issue : LimeSurvey must be able to use any class/other part in any other template. |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=20182 |
|
Version 2.51.0 Build 160829 released |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2016-08-08 13:04 | Mazi | New Issue | |
2016-08-08 13:04 | Mazi | Status | new => assigned |
2016-08-08 13:04 | Mazi | Assigned To | => markusfluer |
2016-08-08 15:13 |
|
Note Added: 40202 | |
2016-08-08 15:42 | Mazi | Issue Monitored: sth | |
2016-08-08 15:46 | Mazi | Note Added: 40204 | |
2016-08-10 10:58 | DenisChenu | Note Added: 40224 | |
2016-08-10 10:59 | DenisChenu | Note Edited: 40224 | |
2016-08-24 11:18 |
|
Status | assigned => resolved |
2016-08-24 11:18 |
|
Fixed in Version | => 2.5 |
2016-08-24 11:18 |
|
Resolution | open => fixed |
2016-08-24 11:20 |
|
Changeset attached | => LimeSurvey master d7aac39e |
2016-08-24 11:20 |
|
Note Added: 40421 | |
2016-08-29 12:39 | c_schmitz | Note Added: 40551 | |
2016-08-29 12:39 | c_schmitz | Status | resolved => closed |
2019-11-01 17:25 | c_schmitz | Category | Survey design => Survey editing |
2021-08-03 12:38 | guest | Bug heat | 8 => 10 |