[
https://issues.apache.org/jira/browse/OFBIZ-4349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13112670#comment-13112670
]
Leon commented on OFBIZ-4349:
-----------------------------
I understand. In the code I paste, it tries to get the real field name from
alias. But in your patch, it's reversed to find the alias name for real field.
Thanks for your explain and contribution. I think it's ok to apply your patch.
> commit r1077940 breaks the function to retrieve i18n translation from real
> entity underlying a view
> ---------------------------------------------------------------------------------------------------
>
> Key: OFBIZ-4349
> URL: https://issues.apache.org/jira/browse/OFBIZ-4349
> Project: OFBiz
> Issue Type: Bug
> Components: framework
> Affects Versions: SVN trunk
> Reporter: Leon
> Attachments: OFBIZ-4349.patch
>
>
> in r1077940 changeset
> ([https://fisheye6.atlassian.com/changelog/ofbiz?cs=1077940]), it gets the pk
> fiels from view entity instead of previous real entity. I cannot understand
> what author erwan commented: "When using a view and fields with different
> names than in the original entity, the model was taking the original names so
> this could lead to warnings". The consequence of this commit is it cannot
> retrieve i18n translation from real entity now because the pks of view entity
> is usually different than that of its base tables.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira