From 70f9b56f6f2aa331884313b86dc09c780ff97608 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sun, 28 Jan 2007 02:01:49 +0000 Subject: [PATCH] Fix bug id 1646228 - Error in viewer with postgresql --- client/src/org/compiere/print/Viewer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/org/compiere/print/Viewer.java b/client/src/org/compiere/print/Viewer.java index 608cbfd75a..890340c030 100644 --- a/client/src/org/compiere/print/Viewer.java +++ b/client/src/org/compiere/print/Viewer.java @@ -902,7 +902,7 @@ public class Viewer extends CFrame + "FROM AD_Tab t" + " INNER JOIN AD_Window w ON (t.AD_Window_ID=w.AD_Window_ID)" + " INNER JOIN AD_Table tt ON (t.AD_Table_ID=tt.AD_Table_ID) " - + "WHERE AD_Table_ID=? " + + "WHERE t.AD_Table_ID=? " + "ORDER BY w.IsDefault DESC, t.SeqNo, ABS (tt.AD_Window_ID-t.AD_Window_ID)"; int AD_Tab_ID = DB.getSQLValue(null, sql, AD_Table_ID); //