[
https://issues.apache.org/jira/browse/OFBIZ-5192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jacques Le Roux updated OFBIZ-5192:
-----------------------------------
Attachment: OFBIZ-5192.patch
I had another look.
The pb is the party profile page uses PartyNameView (for the List Related
Accounts section).
# So UtilCache.getOrCreateUtilCache() registers
entitycache.entity.default.PartyNameView in the utilCacheTable on 1st access on
the party profile page.
# When we update the Party name, the entitycache.entity.default.PartyNameView
should be cleared. This is done by the updatePerson service when storing
change, eventually delegating to Cache.remove(GenericEntity entity) which
itself calls
entityListCache.remove(entity);
entityObjectCache.remove(entity);
But none of these lines is able to get entitycache.entity.default.PartyNameView
in utilCacheTable since they use -list and -object prefixes.
I don't think we should search the pb upstream. 1) seems correct with me.
Now if we want to clear this cache we need to get
entitycache.entity.default.PartyNameView from utilCacheTable.
For now, I see only clumsy ways to do so. Like looking for
delegatorName.viewEntityName in utilCacheTable and clear any cache containing
that name.
I came with the attached tested patch
> Name in List Related Contacts form doesn't get updated
> ------------------------------------------------------
>
> Key: OFBIZ-5192
> URL: https://issues.apache.org/jira/browse/OFBIZ-5192
> Project: OFBiz
> Issue Type: Bug
> Components: party
> Affects Versions: Release Branch 11.04
> Environment: Linux, Postgres
> Reporter: Karl Beecher
> Assignee: Jacques Le Roux
> Priority: Minor
> Fix For: Release Branch 10.04, Release Branch 11.04, SVN trunk,
> Release Branch 12.04
>
> Attachments: OFBIZ-5192.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira