IDEMPIERE-1675 When exporting a window, 2Pack export also records from AD_Preference +Patch

This commit is contained in:
jan thielemann 2014-03-19 12:28:55 -05:00
parent fe51afaaa2
commit 39affc8346
1 changed files with 2 additions and 1 deletions

View File

@ -190,12 +190,13 @@ public class WindowElementHandler extends AbstractElementHandler {
}
// Preference Tag
sql = "SELECT AD_Preference_ID FROM AD_PREFERENCE WHERE AD_WINDOW_ID = ?";
sql = "SELECT AD_Preference_ID FROM AD_PREFERENCE WHERE AD_WINDOW_ID = ? AND AD_CLIENT_ID = ?";
pstmt = null;
rs = null;
try {
pstmt = DB.prepareStatement(sql, getTrxName(ctx));
pstmt.setInt(1, AD_Window_ID);
pstmt.setInt(2, Env.getAD_Client_ID(ctx.ctx));
rs = pstmt.executeQuery();
while (rs.next()) {
createPreference(ctx, document, rs.getInt("AD_Preference_ID"));