You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2013/05/11 10:52:25 UTC

svn commit: r1481274 - /ofbiz/trunk/applications/party/widget/partymgr/PartyForms.xml

Author: jleroux
Date: Sat May 11 08:52:25 2013
New Revision: 1481274

URL: http://svn.apache.org/r1481274
Log:
Fix "Name in List Related Contacts form doesn't get updated" reported by Karl Beecher at https://issues.apache.org/jira/browse/OFBIZ-5192

If a person is set as a related contact for a party, updates to their name are not immediately displayed by the ListRelatedContacts form.

To reproduce (with OFBiz demo data):
* In the Party Manager, go to the profile page of DemoSupplier (they have a related contact called 'Peter Manager'
* Follow the link to Peter Manager's profile page.
* Click Update and change the name (e.g. to 'Peter Manageress')
* Save
* Return to DemoSupplier's profile page. Observe that the name of the related contact is still 'Peter Manager'. Refreshing doesn't change that.
* Restart OFBiz
* Refreshing the profile page now displays the updated name.

jleroux: to test in trunk I used company and scrum employee

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=1481274&r1=1481273&r2=1481274&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/widget/partymgr/PartyForms.xml (original)
+++ ofbiz/trunk/applications/party/widget/partymgr/PartyForms.xml Sat May 11 08:52:25 2013
@@ -771,7 +771,7 @@ under the License.
 
     <form name="ListRelatedContacts" type="list" list-name="contacts" default-table-style="basic-table">
         <field name="partyIdTo">
-            <display-entity entity-name="PartyNameView" description="${firstName} ${middleName} ${lastName} ${groupName}" key-field-name="partyId">
+            <display-entity entity-name="PartyNameView" description="${firstName} ${middleName} ${lastName} ${groupName}" key-field-name="partyId" cache="false">
                 <sub-hyperlink description="[${partyIdTo}]" target="viewprofile">
                 <parameter param-name="partyId" from-field="partyIdTo"/>
             </sub-hyperlink>