Fix bug [ 1814848 ] Showing wrong number of workflows after processed
This commit is contained in:
parent
9104552770
commit
73814632f3
|
@ -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();
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue