[MAGNOLIA-2305] Boolean checkboxSwitch properties are not converted properly Created: 08/Aug/08  Updated: 23/Jan/13  Resolved: 15/Oct/08

Status: Closed
Project: Magnolia
Component/s: admininterface, gui, templating
Affects Version/s: 3.5.8
Fix Version/s: 4.0

Type: Bug Priority: Major
Reporter: Magnolia International Assignee: Philipp Bärfuss
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
dependency
is depended upon by MGNLSTK-145 Impl. templates for home, section and... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

If I have a control named hideTitleOnPage and the following properties:

controlType: checkboxSwitch
type: Boolean

then the property is effectively saved as a string.

The problem is probably related to how the generated html looks like:

<input type="hidden" name="mgnlSaveInfo" value="hideTitleOnPage_SWITCH,Boolean,0,0,0" />
<input type="hidden" name="hideTitleOnPage" id="hideTitleOnPage" value="true" />
<input type="hidden" name="mgnlSaveInfo" value="hideTitleOnPage,String,0,0,0" />


 Comments   
Comment by Christian Ringele [ 02/Oct/08 ]

would be nice to get this working for 3.7, simplifies templates !

Generated at Mon Feb 12 03:35:25 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.