From 73814632f3545a33f335a7bda66ccb86fdb26c8f Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 17 Oct 2007 06:24:00 +0000 Subject: [PATCH] Fix bug [ 1814848 ] Showing wrong number of workflows after processed --- client/src/org/compiere/apps/AMenu.java | 9 +++++++++ client/src/org/compiere/apps/wf/WFActivity.java | 9 +++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/client/src/org/compiere/apps/AMenu.java b/client/src/org/compiere/apps/AMenu.java index e8de0f0c85..570581c648 100644 --- a/client/src/org/compiere/apps/AMenu.java +++ b/client/src/org/compiere/apps/AMenu.java @@ -651,6 +651,14 @@ public final class AMenu extends CFrame } // updateInfo + /** + * Update Activities Label + */ + public void updateActivities(int act_length) + { + centerPane.setTitleAt(m_tabActivities, Msg.getMsg (m_ctx, "WorkflowActivities") + ": " + act_length); + } // updateInfo + /************************************************************************* * Start Workflow Activity * @param AD_Workflow_ID id @@ -669,6 +677,7 @@ public final class AMenu extends CFrame */ public void stateChanged (ChangeEvent e) { + updateInfo(); // show activities if (centerPane.getSelectedIndex() == m_tabActivities) wfActivity.display(); diff --git a/client/src/org/compiere/apps/wf/WFActivity.java b/client/src/org/compiere/apps/wf/WFActivity.java index dfe1bb8def..b10b01cd5b 100644 --- a/client/src/org/compiere/apps/wf/WFActivity.java +++ b/client/src/org/compiere/apps/wf/WFActivity.java @@ -374,6 +374,7 @@ public class WFActivity extends CPanel statusBar.setStatusLine(Msg.getMsg(Env.getCtx(), "WFNoActivities")); bNext.setEnabled(false); bPrevious.setEnabled(false); + m_menu.updateActivities(0); return; } // Display Activity @@ -427,10 +428,10 @@ public class WFActivity extends CPanel // // globalqss - comment following lines to solve the // Bug [ 1711626 ] Workflow tab just allow to navigate first two activities - // if (m_menu != null) - // { - // m_menu.updateInfo(); // calls loadActivities - updates menu tab - // } + if (m_menu != null) + { + m_menu.updateActivities(m_activities.length); + } // End if (m_index+1 >= m_activities.length) {