Author: hansbak
Date: Sat May 30 05:28:14 2009
New Revision: 780180
URL:
http://svn.apache.org/viewvc?rev=780180&view=revLog:
corrected r780111: showing communicationevent for a certain party
Modified:
ofbiz/trunk/applications/party/widget/partymgr/CommunicationScreens.xml
Modified: ofbiz/trunk/applications/party/widget/partymgr/CommunicationScreens.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/widget/partymgr/CommunicationScreens.xml?rev=780180&r1=780179&r2=780180&view=diff==============================================================================
--- ofbiz/trunk/applications/party/widget/partymgr/CommunicationScreens.xml (original)
+++ ofbiz/trunk/applications/party/widget/partymgr/CommunicationScreens.xml Sat May 30 05:28:14 2009
@@ -176,14 +176,27 @@
<set field="tabButtonItem" value="OverView"/>
<set field="parentCommEventId" from-field="parameters.parentCommEventId"/>
<entity-one entity-name="CommunicationEvent" value-field="communicationEvent"/>
- <set field="my" from-field="parameters.my"/>
</actions>
<widgets>
- <decorator-screen name="CommonCommunicationEventDecorator" location="${parameters.mainDecoratorLocation}">
- <decorator-section name="body">
- <include-screen name="commOverview"/>
- </decorator-section>
- </decorator-screen>
+ <section>
+ <condition>
+ <if-empty field="parameters.my"/>
+ </condition>
+ <widgets>
+ <decorator-screen name="CommonCommunicationEventDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <include-screen name="commOverview"/>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ <fail-widgets>
+ <decorator-screen name="CommonMyCommunicationEventDecorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <include-screen name="commOverview"/>
+ </decorator-section>
+ </decorator-screen>
+ </fail-widgets>
+ </section>
</widgets>
</section>
</screen>