You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Leila Mekika (JIRA)" <ji...@apache.org> on 2014/02/28 19:08:22 UTC

[jira] [Created] (OFBIZ-5552) Problems in form list when use-when and position are used together

Leila Mekika created OFBIZ-5552:
-----------------------------------

             Summary: Problems in form list when use-when and position are used together
                 Key: OFBIZ-5552
                 URL: https://issues.apache.org/jira/browse/OFBIZ-5552
             Project: OFBiz
          Issue Type: Bug
          Components: ALL COMPONENTS
    Affects Versions: SVN trunk
            Reporter: Leila Mekika
            Priority: Minor


The service "renderSingleFormString" check the previous field position to see if the current field must be displayed after the previous field or on a new line. 

When the previous field has a use-when condition that is not valid, it remains as the currentFormField and the next field is compared with this "not rendered" field. If the position of this previous field is the same as the current field, the current is displayed on the next line.


To reproduce, add in a single form the three fields below :

<field position="1" name="first"><display description="first"/></field>
<field position="2" name="second" use-when="true"><display description="second"/></field>
<field position="2" name="second" use-when="false"><display description="second"/></field>

The field second is rendered in a new line



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)