From 058d554663667113d1cb644d2a1f9afaf5ff65a7 Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Sun, 17 Jun 2007 13:45:55 +0000 Subject: [PATCH] BF [ 1738641 ] Import Formats are accesible for all tenants http://sourceforge.net/tracker/index.php?func=detail&aid=1738641&group_id=176962&atid=879332 --- client/src/org/compiere/apps/form/VFileImport.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/client/src/org/compiere/apps/form/VFileImport.java b/client/src/org/compiere/apps/form/VFileImport.java index cfe7fbd120..6a9e7b1acb 100644 --- a/client/src/org/compiere/apps/form/VFileImport.java +++ b/client/src/org/compiere/apps/form/VFileImport.java @@ -26,6 +26,7 @@ import java.util.logging.*; import javax.swing.*; import org.compiere.apps.*; import org.compiere.impexp.*; +import org.compiere.model.MRole; import org.compiere.plaf.*; import org.compiere.swing.*; import org.compiere.util.*; @@ -33,15 +34,11 @@ import org.compiere.util.*; /** * Fixed length file import - *

- * Change log: - *

* * @author Jorg Janke * @version $Id: VFileImport.java,v 1.2 2006/07/30 00:51:28 jjanke Exp $ + * + * @author Teo Sarca, FR [ 1658127 ], BF [ 1619158 ], BF [ 1738641 ] */ public class VFileImport extends CPanel implements FormPanel, ActionListener @@ -171,7 +168,8 @@ public class VFileImport extends CPanel { // Load Formats pickFormat.addItem(s_none); - String sql = "SELECT Name from AD_ImpFormat"; + String sql = MRole.getDefault().addAccessSQL("SELECT Name FROM AD_ImpFormat", "AD_ImpFormat", + MRole.SQL_FULLYQUALIFIED, MRole.SQL_RO); try { PreparedStatement pstmt = DB.prepareStatement(sql, null);