Author: jonesde
Date: Sun Apr 19 07:08:11 2009
New Revision: 766431
URL:
http://svn.apache.org/viewvc?rev=766431&view=revLog:
Fixed bug reported by BJ Freeman in Jira issue #OFBIZ-2319 where export of view entities to a file (not to browser) was failing
Modified:
ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/XmlDsDump.groovy
Modified: ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/XmlDsDump.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/XmlDsDump.groovy?rev=766431&r1=766430&r2=766431&view=diff==============================================================================
--- ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/XmlDsDump.groovy (original)
+++ ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/XmlDsDump.groovy Sun Apr 19 07:08:11 2009
@@ -207,7 +207,7 @@
beganTransaction = TransactionUtil.begin(3600);
try {
me = reader.getModelEntity(curEntityName);
- if (me.getNoAutoStamp()) {
+ if (me.getNoAutoStamp() || me instanceof ModelViewEntity) {
values = delegator.find(curEntityName, null, null, null, me.getPkFieldNames(), efo);
} else {
values = delegator.find(curEntityName, entityDateCond, null, null, UtilMisc.toList("-createdTxStamp"), efo);
@@ -262,7 +262,7 @@
results.add("[$fileNumber] [vvv] $curEntityName skipping view entity");
return;
}
- if (me.getNoAutoStamp()) {
+ if (me.getNoAutoStamp() || me instanceof ModelViewEntity) {
values = delegator.find(curEntityName, null, null, null, me.getPkFieldNames(), efo);
} else {
values = delegator.find(curEntityName, entityDateCond, null, null, me.getPkFieldNames(), efo);