details: https://code.openbravo.com/erp/devel/pi/rev/5816fb3ef563
changeset: 17675:5816fb3ef563
user: Pandeeswari Ramakrishnan <pandeeswari.ramakrishnan <at>
openbravo.com>
date: Wed Aug 15 15:07:41 2012 +0530
summary: Fixes Issue 21187 : Ignore inactive tables when exporting dataset
diffstat:
src/org/openbravo/service/db/DataExportService.java | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 54ee31faa732 -r 5816fb3ef563
src/org/openbravo/service/db/DataExportService.java
--- a/src/org/openbravo/service/db/DataExportService.java Tue Aug 14
17:12:30 2012 +0530
+++ b/src/org/openbravo/service/db/DataExportService.java Wed Aug 15
15:07:41 2012 +0530
@@ -38,6 +38,7 @@
import org.openbravo.dal.core.OBContext;
import org.openbravo.dal.service.OBCriteria;
import org.openbravo.dal.service.OBDal;
+import org.openbravo.dal.service.OBQuery;
import org.openbravo.dal.xml.EntityXMLConverter;
import org.openbravo.model.ad.system.Client;
import org.openbravo.model.ad.utility.DataSet;
@@ -188,7 +189,9 @@
final StringWriter out = new StringWriter();
exc.setOutput(out);
- final List<DataSetTable> dts = dataSet.getDataSetTableList();
+ // used to filter out the inactive rows
+ final OBQuery<DataSetTable> datasetTable =
OBDal.getInstance().createQuery(DataSetTable.class,
"dataset='"+dataSet.getId()+"'");
+ final List<DataSetTable> dts = datasetTable.list();
Collections.sort(dts, new DatasetTableComparator());
// set the Client ID if not set
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits