You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Pierre Smits (JIRA)" <ji...@apache.org> on 2012/04/26 09:48:20 UTC
[jira] [Commented] (OFBIZ-4844) Fields in extended entity do not
override attribute enable-audit-log
[ https://issues.apache.org/jira/browse/OFBIZ-4844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13262440#comment-13262440 ]
Pierre Smits commented on OFBIZ-4844:
-------------------------------------
I believe this is not a 'minor' bug.
> Fields in extended entity do not override attribute enable-audit-log
> --------------------------------------------------------------------
>
> Key: OFBIZ-4844
> URL: https://issues.apache.org/jira/browse/OFBIZ-4844
> Project: OFBiz
> Issue Type: Bug
> Components: framework
> Affects Versions: Release 11.04.01
> Environment: n/a
> Reporter: Adam Kozak
> Priority: Trivial
> Original Estimate: 10m
> Remaining Estimate: 10m
>
> When extending existing entity and overriding fields attribute 'enable-audit-log' is not overriden. Suggested patch in ModelEntity.java:
> if (UtilValidate.isNotEmpty(field.getDescription())) {
> existingField.setDescription(field.getDescription());
> }
> + existingField.enableAuditLog = UtilXml.checkBoolean(fieldElement.getAttribute("enable-audit-log"), existingField.enableAuditLog);
> } else {
--
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