IDEMPIERE-4834 : Import Formats are not ordered on Import File Loader (#723)

This commit is contained in:
Nicolas Micoud 2021-06-17 12:25:04 +02:00 committed by GitHub
parent 9f6232c50a
commit fa7ddb7dd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ public class WFileImport extends ADForm implements EventListener<Event>
/**
*
*/
private static final long serialVersionUID = -5779187375101512112L;
private static final long serialVersionUID = -7462842139127270429L;
private static final int MAX_LOADED_LINES = 100;
private static final int MAX_SHOWN_LINES = 10;
@ -241,7 +241,7 @@ public class WFileImport extends ADForm implements EventListener<Event>
// Load Formats
pickFormat.appendItem(s_none, s_none);
String sql = MRole.getDefault().addAccessSQL("SELECT Name,AD_Impformat_ID FROM AD_ImpFormat WHERE isactive='Y'", "AD_ImpFormat",
String sql = MRole.getDefault().addAccessSQL("SELECT Name, AD_Impformat_ID FROM AD_ImpFormat WHERE IsActive='Y' ORDER BY Name", "AD_ImpFormat",
MRole.SQL_FULLYQUALIFIED, MRole.SQL_RO);
PreparedStatement pstmt = null;
ResultSet rs = null;