svn commit: r601072 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelViewEntity.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r601072 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelViewEntity.java

jacopoc
Author: jacopoc
Date: Tue Dec  4 12:27:19 2007
New Revision: 601072

URL: http://svn.apache.org/viewvc?rev=601072&view=rev
Log:
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);