Changes for page homeopathsSheet

Last modified by Jip-jan Alunkel on March 26, 17:31

From version 3.102
edited by Jip-jan Alunkel
on March 10, 20:54
Change comment: Rollback to version 1.38
To version 3.105
edited by Jip-jan Alunkel
on March 10, 21:13
Change comment: Rollback to version 1.38

Summary

Details

Page properties
Content
... ... @@ -108,13 +108,16 @@
108 108   #set($checkBool = ["false","true"])
109 109   #if(!$item.containsKey("classless") && $theDocObj.getProperty($propertyName)) ## 'address' is not a property in the current class
110 110   #set($value = $theDocObj.getProperty($propertyName).value)
111 +$value
111 111   #if($item.type == "checkbox")
112 112   #set($item.extraAttributes["data-checked"] = "$checkBool[$value]")
113 113   #end
114 114   #else
115 - #set($value = "")
116 - #if($item.type == "checkbox" && $item.containsKey("extraAttributes") && !$item.extraAttributes.containsKey("data-checked"))
116 + #if($item.type == "checkbox")
117 + #set($value = "1")
118 + #if(!$item.extraAttributes.containsKey("data-checked"))
117 117   #set($item.extraAttributes["data-checked"] = "$checkBool[0]")
120 + #end
118 118   #end
119 119   #end
120 120   #if(!$value)