svn commit: r685486 - /ofbiz/trunk/specialpurpose/mypage/widget/MyPageMenus.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r685486 - /ofbiz/trunk/specialpurpose/mypage/widget/MyPageMenus.xml

hansbak-2
Author: hansbak
Date: Wed Aug 13 01:56:17 2008
New Revision: 685486

URL: http://svn.apache.org/viewvc?rev=685486&view=rev
Log:
only show email to send if there is a primary email address assigned

Modified:
    ofbiz/trunk/specialpurpose/mypage/widget/MyPageMenus.xml

Modified: ofbiz/trunk/specialpurpose/mypage/widget/MyPageMenus.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/mypage/widget/MyPageMenus.xml?rev=685486&r1=685485&r2=685486&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/mypage/widget/MyPageMenus.xml (original)
+++ ofbiz/trunk/specialpurpose/mypage/widget/MyPageMenus.xml Wed Aug 13 01:56:17 2008
@@ -105,13 +105,14 @@
     </menu>
     <menu name="communicationsMenu">
         <actions>
-            <service service-name="getPartyEmail" result-map-name="emailResult">
-                <field-map field-name="partyId" env-name="userLogin.partyId"/>
-            </service>
+        <entity-and entity-name="PartyContactDetailByPurpose" filter-by-date="true" list-name="emails">
+            <field-map field-name="partyId" env-name="userLogin.partyId"/>
+            <field-map field-name="contactMechPurposeTypeId" value="PRIMARY_EMAIL"/>
+        </entity-and>
         </actions>
         <menu-item name="newEmail" title="${uiLabelMap.PartyNewEmail}">
             <condition>
-                <not><if-empty field-name="emailResult.emailAddress"/></not>
+                <not><if-empty field-name="emails"/></not>
             </condition>      
             <link
                 target="EditCommunicationEvent?communicationEventTypeId=EMAIL_COMMUNICATION&amp;donePage=${parameters.donePage}" />