Author: jaz
Date: Fri Apr 24 16:45:23 2009
New Revision: 768362

URL: http://svn.apache.org/viewvc?rev=768362&view=rev
Log:
changed the contact list drop down to :
1. use the contactListName instead of description (description is most often 
empty since there is no field to enter it)
2. use the min of the name.length() or 12 to avoid out of bounds exceptions

Modified:
    ofbiz/trunk/applications/marketing/widget/sfa/forms/ContactForms.xml
    ofbiz/trunk/applications/marketing/widget/sfa/forms/LeadForms.xml

Modified: ofbiz/trunk/applications/marketing/widget/sfa/forms/ContactForms.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/widget/sfa/forms/ContactForms.xml?rev=768362&r1=768361&r2=768362&view=diff
==============================================================================
--- ofbiz/trunk/applications/marketing/widget/sfa/forms/ContactForms.xml 
(original)
+++ ofbiz/trunk/applications/marketing/widget/sfa/forms/ContactForms.xml Fri 
Apr 24 16:45:23 2009
@@ -115,7 +115,7 @@
         <field name="emailAddress" title="${uiLabelMap.CommonEmail}"><text 
size="15"/></field>
         <field name="contactListId" title="${uiLabelMap.MarketingContactList}">
             <drop-down allow-empty="true">
-                <entity-options entity-name="ContactList" 
description="${groovy:description.substring(0,12)}..." 
key-field-name="contactListId"/>
+                <entity-options entity-name="ContactList" 
description="${groovy:contactListName.substring(0,Math.min(contactListName.length(),
 12))}..." key-field-name="contactListId"/>
             </drop-down>
         </field>
         <field name="quickAdd"><hidden value="Y"/></field>

Modified: ofbiz/trunk/applications/marketing/widget/sfa/forms/LeadForms.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/widget/sfa/forms/LeadForms.xml?rev=768362&r1=768361&r2=768362&view=diff
==============================================================================
--- ofbiz/trunk/applications/marketing/widget/sfa/forms/LeadForms.xml (original)
+++ ofbiz/trunk/applications/marketing/widget/sfa/forms/LeadForms.xml Fri Apr 
24 16:45:23 2009
@@ -139,7 +139,7 @@
         <field name="emailAddress" title="${uiLabelMap.CommonEmail}"><text 
size="15"/></field>
         <field name="contactListId" title="${uiLabelMap.MarketingContactList}">
             <drop-down allow-empty="true">
-                <entity-options entity-name="ContactList" 
description="${groovy:description.substring(0,12)}..." 
key-field-name="contactListId"/>
+                <entity-options entity-name="ContactList" 
description="${groovy:contactListName.substring(0,Math.min(contactListName.length(),
 12))}..." key-field-name="contactListId"/>
             </drop-down>
         </field>
         <field name="quickAdd"><hidden value="Y"/></field>


Reply via email to