Author: jacopoc
Date: Tue Dec 4 12:27:19 2007
New Revision: 601072
URL:
http://svn.apache.org/viewvc?rev=601072&view=revLog:
Applied patch from Adrian Crum (OFBIZ-1422) to fix some cases where aliased entity fields were losing their description element.
Modified:
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelViewEntity.java
Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelViewEntity.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelViewEntity.java?rev=601072&r1=601071&r2=601072&view=diff==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelViewEntity.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelViewEntity.java Tue Dec 4 12:27:19 2007
@@ -409,6 +409,9 @@
field.validators = aliasedField.validators;
field.colName = alias.entityAlias + "." + SqlJdbcUtil.filterColName(aliasedField.colName);
+ if (UtilValidate.isEmpty(field.description)) {
+ field.description = aliasedField.description;
+ }
}
this.fields.add(field);