IDEMPIERE-1675 When exporting a window, 2Pack export also records from AD_Preference +Patch
This commit is contained in:
parent
fe51afaaa2
commit
39affc8346
|
@ -190,12 +190,13 @@ public class WindowElementHandler extends AbstractElementHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Preference Tag
|
// 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;
|
pstmt = null;
|
||||||
rs = null;
|
rs = null;
|
||||||
try {
|
try {
|
||||||
pstmt = DB.prepareStatement(sql, getTrxName(ctx));
|
pstmt = DB.prepareStatement(sql, getTrxName(ctx));
|
||||||
pstmt.setInt(1, AD_Window_ID);
|
pstmt.setInt(1, AD_Window_ID);
|
||||||
|
pstmt.setInt(2, Env.getAD_Client_ID(ctx.ctx));
|
||||||
rs = pstmt.executeQuery();
|
rs = pstmt.executeQuery();
|
||||||
while (rs.next()) {
|
while (rs.next()) {
|
||||||
createPreference(ctx, document, rs.getInt("AD_Preference_ID"));
|
createPreference(ctx, document, rs.getInt("AD_Preference_ID"));
|
||||||
|
|
Loading…
Reference in New Issue