Print button while creating a new document
- there is a problem with the previous fix, should use context classloader to load zk class Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2858657
This commit is contained in:
parent
305a239f1a
commit
cc75d21efe
|
@ -267,7 +267,9 @@ public class ReportCtl
|
|||
{
|
||||
try
|
||||
{
|
||||
ClassLoader loader = ReportCtl.class.getClassLoader();
|
||||
ClassLoader loader = Thread.currentThread().getContextClassLoader();
|
||||
if (loader == null)
|
||||
loader = ReportCtl.class.getClassLoader();
|
||||
Class<?> clazz = loader.loadClass("org.adempiere.webui.window.FDialog");
|
||||
Method m = clazz.getMethod("error", Integer.TYPE, String.class);
|
||||
m.invoke(null, 0, "NoDocPrintFormat");
|
||||
|
|
Loading…
Reference in New Issue