Changes for page homeopathsSheet
Last modified by Jip-jan Alunkel on March 26, 17:31
From version 3.70
edited by Jip-jan Alunkel
on March 09, 17:15
on March 09, 17:15
Change comment:
Rollback to version 1.38
To version 3.76
edited by Jip-jan Alunkel
on March 09, 17:26
on March 09, 17:26
Change comment:
Rollback to version 1.38
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -110,24 +110,28 @@ 110 110 #if($propertyType == "checkbox") 111 111 #set($value = "1") 112 112 #if($item.containsKey("classless")) 113 - #set($item["checked"] = '0') 113 + #if(!$item.containsKey("checked")) 114 + #set($item["checked"] = '0') 115 + #end 114 114 #else 115 - #set($checkboxPropVal = $theDocObj.getProperty( "certification").value)116 - #set($item["checked"] = '$numbertool.toNumber($checkboxPropVal).intValue()')117 + #set($checkboxPropVal = $theDocObj.getProperty($propertyName).value) 118 + #set($item["checked"] = "${checkboxPropVal}") 117 117 #end 118 118 #end 121 + #if($theDocObj.getProperty($propertyName) || $propertyType == "address") ## 'address' is not a property in the current class 122 + #if($propertyType != "checkbox") 123 + #set($value = $theDocObj.getProperty($propertyName).value) 124 + #end 125 + #end 119 119 #set($propertyChecked = $item.checked) 120 120 #set($propertyOpener = $item.opener) 121 121 #set($propertyParent = $item.parent) 122 122 #set($extraAttributes = $item.extraAttributes) 123 123 #set($label = $services.localization.render("homeopaths.classproperty.${propertyName}")) 124 - #if($theDocObj.getProperty($propertyName) || $propertyType == "address") ## 'address' is not a property in the current class 125 - #set($value = $theDocObj.getProperty($propertyName).value) 126 - #end 127 127 #if(!$value) 128 128 #set($value = "") 129 129 #end 130 -$ value134 +$propertyChecked 131 131 #if($item.containsKey("classless")) 132 132 #set($newElem = { 133 133 "id" : "$propertyName",