[
https://issues.apache.org/jira/browse/OFBIZ-4781?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13262625#comment-13262625
]
Daniel Riquelme commented on OFBIZ-4781:
----------------------------------------
Hi, I took a closer look to this and found that it is implemented in trunk but
not in 11.04.
In 11.04 instead of the comment you mentioned the following code appears:
ModelViewEntity.ViewEntityCondition viewEntityCondition =
viewLink.getViewEntityCondition();
if (viewEntityCondition != null) {
EntityCondition whereCondition =
viewEntityCondition.getWhereCondition(modelFieldTypeReader, null);
if (whereCondition != null) {
condBuffer.append(" AND ");
condBuffer.append(whereCondition.makeWhereString(modelEntity, null,
datasourceInfo));
}
}
I haven't tested this code in 11.04 so I can't tell you if any other
modification is needed.
I can't tell you wether this code will get any time soon to 11.04, perhaps if
you ask this on the dev list you may get a better answer.
> entitymodel - entity-condition inside view-link does not work
> -------------------------------------------------------------
>
> Key: OFBIZ-4781
> URL: https://issues.apache.org/jira/browse/OFBIZ-4781
> Project: OFBiz
> Issue Type: Bug
> Components: framework
> Affects Versions: Release Branch 11.04
> Environment: Win Xp, java 1.6.0_23
> Reporter: Wojciech Szymanowski
> Labels: entity-condition, view-link
>
> Inside entitymodel.xml file - when I put entity-condition tag inside
> view-link tag it does not affect db query at all. Condition from
> entity-condition tag should be added to join statement.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira