Changes for page homeopathsSheet
Last modified by Jip-jan Alunkel on March 26, 17:31
From version 3.69
edited by Jip-jan Alunkel
on March 09, 17:12
on March 09, 17:12
Change comment:
Rollback to version 1.38
To version 3.75
edited by Jip-jan Alunkel
on March 09, 17:24
on March 09, 17:24
Change comment:
Rollback to version 1.38
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -108,25 +108,30 @@ 108 108 #if($item.containsKey("disabled")) 109 109 #else 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 134 +$propertyChecked 130 130 #if($item.containsKey("classless")) 131 131 #set($newElem = { 132 132 "id" : "$propertyName",