From 1f747fb0b38b01484227ba3b1047d38e420d1565 Mon Sep 17 00:00:00 2001 From: Diego Ruiz Date: Fri, 21 Jul 2017 20:09:13 +0200 Subject: [PATCH] IDEMPIERE-3433 Info Window error when navigating to last page and LoadPageNum=N --- .../WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java index b555591312..6ceedc67f7 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java @@ -1779,6 +1779,11 @@ public abstract class InfoPanel extends Window implements EventListener, { updateListSelected(); int pgNo = paging.getActivePage(); + if (pgNo == paging.getPageCount()-1 && !isLoadPageNumber()) { + testCount(); + paging.setTotalSize(m_count); + pgNo = paging.getActivePage(); + } if (pageNo != pgNo) {