fixed bug 16701: All section are closed when it should be open
authorAsier Lostalé <asier.lostale@openbravo.com>
Thu, 07 Apr 2011 16:39:28 +0200
changeset 11548 b981769d0cef
parent 11547 915b198578bd
child 11551 8d002e0b6285
fixed bug 16701: All section are closed when it should be open
modules/org.openbravo.client.application/src/org/openbravo/client/application/templates/ob-view-field.js.ftl
--- a/modules/org.openbravo.client.application/src/org/openbravo/client/application/templates/ob-view-field.js.ftl	Thu Apr 07 15:23:44 2011 +0200
+++ b/modules/org.openbravo.client.application/src/org/openbravo/client/application/templates/ob-view-field.js.ftl	Thu Apr 07 16:39:28 2011 +0200
@@ -62,7 +62,11 @@
           </#if>
         </#if>
         <#if fieldDefinition.type = "OBSectionItem" || fieldDefinition.type = "OBNoteSectionItem" || fieldDefinition.type = "OBLinkedItemSectionItem" >
+        <#if fieldDefinition.type = "OBNoteSectionItem">
         sectionExpanded: false,
+        <#else>
+        sectionExpanded: true,
+        </#if>
         defaultValue: '${fieldDefinition.label?js_string}',
         itemIds: [
         <#list fieldDefinition.children as childField>