BF [ 1808596 ] Error when exporting print format with included print format

This commit is contained in:
teo_sarca 2007-10-06 12:59:35 +00:00
parent f6b5458305
commit 0350f494f4
1 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@
* *
* Copyright (C) 2005 Robert Klein. robeklein@hotmail.com * Copyright (C) 2005 Robert Klein. robeklein@hotmail.com
* Contributor(s): Low Heng Sin hengsin@avantz.com * Contributor(s): Low Heng Sin hengsin@avantz.com
* Teo Sarca, SC ARHIPAC SERVICE SRL
*****************************************************************************/ *****************************************************************************/
package org.adempiere.pipo.handler; package org.adempiere.pipo.handler;
@ -198,7 +199,7 @@ public class PrintFormatElementHandler extends AbstractElementHandler {
document.startElement("", "", "printformat", atts); document.startElement("", "", "printformat", atts);
String sql2 = "SELECT * FROM AD_PrintFormatItem WHERE AD_PrintFormat_ID= " String sql2 = "SELECT * FROM AD_PrintFormatItem WHERE AD_PrintFormat_ID= "
+ AD_PrintFormat_ID; + m_Printformat.getAD_PrintFormat_ID();
PreparedStatement pstmt2 = null; PreparedStatement pstmt2 = null;
pstmt2 = DB.prepareStatement(sql2, getTrxName(ctx)); pstmt2 = DB.prepareStatement(sql2, getTrxName(ctx));
try { try {