[
https://issues.apache.org/jira/browse/OFBIZ-1602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12562978#action_12562978
]
Raj Saini commented on OFBIZ-1602:
----------------------------------
On further analysis, I found that exception occurs when getRelated is called to
retrieve the Person entity. Solution could be:
1. Look up party based on postedUserLogin.partyId
2. Get the value of PartyTypeId from party.
3. Lookup the Person or PartyGroup based on the PartyTypeId.
> FreeMaker exception1/ while approving the cutomer reviews created by a
> PartyGroup user
> ---------------------------------------------------------------------------------------
>
> Key: OFBIZ-1602
> URL: https://issues.apache.org/jira/browse/OFBIZ-1602
> Project: OFBiz
> Issue Type: Bug
> Components: product
> Affects Versions: SVN trunk
> Environment: Ubuntu 7.10, Firefox 2.0.0.11
> Reporter: Raj Saini
>
> FreeMaker exception1/ while approving the cutomer reviews created by a
> PartyGroup user.
> How to reproduce:
> 1. Login as DemoCustCompany in the eCommerce,
> 2. Create a customer review.
> 3. Login to the Catalog Manager as admin.
> 4. Click on the Review tab in Catalog Manager.
> FreeMarker exception is thrown. FreeMarker template expects a Person where as
> the user was created by PartyGroup. One fix is to to retrived the
> PartyGroup if the userLogin.getRelated() returns null Person. And then use
> the groupName field instead of firstName and lastName.
> Please advise.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.