Author: jleroux
Date: Thu Dec  9 18:54:34 2010
New Revision: 1044082

URL: http://svn.apache.org/viewvc?rev=1044082&view=rev
Log:
Fix a small rendering issue:

When you updated personal information of a lead, if this lead was assigned, in 
the status dropdown you saw LEAD_ASSIGNED. I have changed to show correct 
information (also possible i18n)

Modified:
    ofbiz/trunk/applications/party/widget/partymgr/PartyForms.xml

Modified: ofbiz/trunk/applications/party/widget/partymgr/PartyForms.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/widget/partymgr/PartyForms.xml?rev=1044082&r1=1044081&r2=1044082&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/widget/partymgr/PartyForms.xml (original)
+++ ofbiz/trunk/applications/party/widget/partymgr/PartyForms.xml Thu Dec  9 
18:54:34 2010
@@ -73,7 +73,7 @@ under the License.
             </drop-down>
         </field>
         <field name="statusId" use-when="person==null"><hidden/></field>
-        <field name="statusId" use-when="person!=null">
+        <field name="statusId" use-when="person!=null &amp;&amp; 
leadDescription==null">
             <drop-down allow-empty="false">
                 <entity-options description="${description}" 
entity-name="StatusItem">
                     <entity-constraint name="statusTypeId" 
value="PARTY_STATUS"/>
@@ -81,6 +81,14 @@ under the License.
                 </entity-options>
             </drop-down>
         </field>
+        <field name="statusId" use-when="person!=null &amp;&amp; 
leadDescription!=null">
+            <drop-down allow-empty="false">
+                <entity-options description="${description}" 
entity-name="StatusItem">
+                    <entity-constraint name="statusId" operator="in" 
value="LEAD_ASSIGNED,PARTY_ENABLED,,PARTY_DISABLED"/>
+                    <entity-order-by field-name="sequenceId"/>
+                </entity-options>
+            </drop-down>
+        </field>
         <field name="submitButton" title="${uiLabelMap.CommonSave}"><submit 
button-type="button"/></field>
         <field name="cancelLink" title="${uiLabelMap.CommonEmptyHeader}" 
widget-style="smallSubmit">
             <hyperlink target="${donePage}" also-hidden="false" 
description="${uiLabelMap.CommonCancelDone}">


Reply via email to