View Issue Details

IDProjectCategoryView StatusLast Update
16124Bug reportsTheme editorpublic2020-10-19 18:49
Reportertpartner Assigned To 
PrioritynormalSeveritypartial_block 
Status confirmedResolutionopen 
Product Version4.1.16 
Target Version4.1.17 
Summary16124: In custom question theme, cannot hide core attribute and set a default value
Description

In config.xml, I can hide core attributes with code like this:

<attribute>
<name>prefix</name>
<category>Display</category>
<inputtype></inputtype>
</attribute>

However, when I try to hide the attribute AND set a default value like this, the default value is not picked up (in this case, the question is always hidden).

<attribute>
<name>hidden</name>
<category>Display</category>
<inputtype></inputtype>
<default>0</default>
</attribute>

This is a regression as it worked in 3.x.

Sample survey and question theme attached.

Steps To Reproduce

In config.xml of the attached theme, I have commented out the code to hide the "hidden" attribute (lines 94-101). Un-comment that code block and you will see that the questions are hidden despite the fact that a value of 0 is set as default.

TagsNo tags attached.
Complete LimeSurvey version number (& build)4.1.16
I will donate to the project if issue is resolvedNo
Sync to Zoho Project
BrowserN/A
Database & DB-Versionmysqlnd 5.0.12
Server OS (if known)Windows 10
Webserver software & version (if known)Apache/2.4.39 (Win64)
PHP Version7.3.7

Activities

tpartner

tpartner

2020-04-10 18:06

developer  

cardSort.zip (417,263 bytes)
Card_Sort_for_4.x.lss (40,463 bytes)

Issue History

Date Modified Username Field Change
2020-04-10 18:06 tpartner New Issue
2020-04-10 18:06 tpartner Status new => assigned
2020-04-10 18:06 tpartner Assigned To => cdorin
2020-04-10 18:06 tpartner File Added: cardSort.zip
2020-04-10 18:06 tpartner File Added: Card_Sort_for_4.x.lss
2020-04-10 18:06 tpartner Description Updated View Revisions
2020-04-10 18:07 tpartner Description Updated View Revisions
2020-04-10 18:08 tpartner Description Updated View Revisions
2020-04-10 18:08 tpartner Description Updated View Revisions
2020-04-10 18:10 tpartner Description Updated View Revisions
2020-04-10 18:10 tpartner Description Updated View Revisions
2020-04-10 18:11 tpartner Description Updated View Revisions
2020-04-10 18:12 tpartner Description Updated View Revisions
2020-04-10 18:13 tpartner Description Updated View Revisions
2020-04-10 18:13 tpartner Description Updated View Revisions
2020-10-19 18:49 cdorin Assigned To cdorin =>
2020-10-19 18:49 cdorin Priority none => normal
2020-10-19 18:49 cdorin Status assigned => confirmed