Files
ofbiz-framework/applications/content
Jacques Le Roux 75532a3358 A patch from Martin Kreidenweis https://issues.apache.org/jira/browse/OFBIZ-4451
Warning in log when using @renderSubContentCache freemarker macro

When using the @renderSubContentCache freemarker macro, warnings like this appear in the log:

[      GenericEntity.java:314:WARN ] The field name (or key) [caContentAssocTypeId] is not valid for entity [ContentDataResourceView], printing IllegalArgumentException instead of throwing it because Map interface specification does not allow throwing that exception.

Patch: GenericValue.get() will actually not throw an exception but instead log a warning if the field doesn't exist, so now we first check if the field we are trying to access exists.
Checking one of the fields through the ModelEntity should be enough, as all three of them come from the same entity.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1212147 13f79535-47bb-0310-9956-ffa450edef68
2011-12-08 21:56:02 +00:00
..
2009-09-24 00:38:31 +00:00