From c6b0cd00f9d47ab3b4cbd69cf4789272d145829b Mon Sep 17 00:00:00 2001 From: Carlos Augusto Sanchez Date: Tue, 27 May 2014 17:00:55 -0500 Subject: [PATCH] IDEMPIERE-1966 Configured sql-order-by statement in product info not taken into account when warehouse is selected --- .../WEB-INF/src/org/adempiere/webui/info/InfoProductWindow.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/info/InfoProductWindow.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/info/InfoProductWindow.java index 60306ea4e2..2566d20faf 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/info/InfoProductWindow.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/info/InfoProductWindow.java @@ -841,7 +841,7 @@ public class InfoProductWindow extends InfoWindow { @Override protected void prepareTable(ColumnInfo[] layout, String from, String where, String orderBy) { - if (getSelectedWarehouseId() > 0) + if (Util.isEmpty(orderBy) && getSelectedWarehouseId() > 0) { orderBy = "QtyAvailable DESC"; }