From 3f2838856dfd0373eaf887f4967c4394950111ff Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Thu, 17 Sep 2009 09:33:08 +0000 Subject: [PATCH] BF [ 2860556 ] Info class throws false error https://sourceforge.net/tracker/?func=detail&aid=2860556&group_id=176962&atid=879332 --- client/src/org/compiere/apps/search/Info.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/src/org/compiere/apps/search/Info.java b/client/src/org/compiere/apps/search/Info.java index ab068c133e..0f7ccd924a 100644 --- a/client/src/org/compiere/apps/search/Info.java +++ b/client/src/org/compiere/apps/search/Info.java @@ -80,6 +80,8 @@ import org.compiere.util.Msg; * https://sourceforge.net/tracker/?func=detail&atid=879335&aid=2846869&group_id=176962 *
  • FR [ 2847305 ] Info class improvements * https://sourceforge.net/tracker/?func=detail&aid=2847305&group_id=176962&atid=879335 + *
  • BF [ 2860556 ] Info class throws false error + * https://sourceforge.net/tracker/?func=detail&aid=2860556&group_id=176962&atid=879332 */ public abstract class Info extends CDialog implements ListSelectionListener @@ -634,6 +636,11 @@ public abstract class Info extends CDialog int rows = p_table.getRowCount(); for (int row = 0; row < rows; row++) { + // If this is the Totals row (last row), we need to skip it - teo_sarca [ 2860556 ] + if (p_table.getShowTotals() && row == rows - 1) + { + continue; + } Object data = p_table.getModel().getValueAt(row, m_keyColumnIndex); if (data instanceof IDColumn) {