details: https://code.openbravo.com/erp/devel/pi/rev/7a91d0fef87d
changeset: 17704:7a91d0fef87d
user: Pandeeswari Ramakrishnan <pandeeswari.ramakrishnan <at>
openbravo.com>
date: Thu Aug 16 21:02:26 2012 +0530
summary: Fixes Issue 21187 : Ignore inactive tables when exporting dataset
diffstat:
src/org/openbravo/service/db/DataExportService.java | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diffs (22 lines):
diff -r 8aa6c24c1fb4 -r 7a91d0fef87d
src/org/openbravo/service/db/DataExportService.java
--- a/src/org/openbravo/service/db/DataExportService.java Fri Aug 17
14:58:50 2012 +0200
+++ b/src/org/openbravo/service/db/DataExportService.java Thu Aug 16
21:02:26 2012 +0530
@@ -198,11 +198,13 @@
final Set<BaseOBObject> toExport = new LinkedHashSet<BaseOBObject>();
for (final DataSetTable dt : dts) {
- final Boolean isbo = dt.isBusinessObject();
- exc.setOptionIncludeChildren(isbo != null && isbo.booleanValue());
- final List<BaseOBObject> list =
DataSetService.getInstance().getExportableObjects(dt,
- moduleId, parameters);
- toExport.addAll(list);
+ if(dt.isActive()) {
+ final Boolean isbo = dt.isBusinessObject();
+ exc.setOptionIncludeChildren(isbo != null && isbo.booleanValue());
+ final List<BaseOBObject> list =
DataSetService.getInstance().getExportableObjects(dt,
+ moduleId, parameters);
+ toExport.addAll(list);
+ }
}
if (toExport.size() > 0) {
------------------------------------------------------------------------------
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