IDEMPIERE-3355:Toolbar Process Button is always active even if has no process
cast exception
This commit is contained in:
parent
e2a5b96126
commit
e630f73298
|
@ -1669,8 +1669,6 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean isNewRow = adTabbox.getSelectedGridTab().getRowCount() == 0 || adTabbox.getSelectedGridTab().isNew();
|
boolean isNewRow = adTabbox.getSelectedGridTab().getRowCount() == 0 || adTabbox.getSelectedGridTab().isNew();
|
||||||
ADTabpanel adtab = (ADTabpanel) adTabbox.getSelectedTabpanel();
|
|
||||||
toolbar.enableProcessButton(!isNewRow && adtab != null && adtab.getToolbarButtons().size() > 0);
|
|
||||||
toolbar.enableArchive(!isNewRow);
|
toolbar.enableArchive(!isNewRow);
|
||||||
toolbar.enableZoomAcross(!isNewRow);
|
toolbar.enableZoomAcross(!isNewRow);
|
||||||
toolbar.enableActiveWorkflows(!isNewRow);
|
toolbar.enableActiveWorkflows(!isNewRow);
|
||||||
|
@ -1685,8 +1683,14 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
||||||
toolbar.enableTabNavigation(breadCrumb.hasParentLink(), adTabbox.getSelectedDetailADTabpanel() != null);
|
toolbar.enableTabNavigation(breadCrumb.hasParentLink(), adTabbox.getSelectedDetailADTabpanel() != null);
|
||||||
|
|
||||||
//Deepak-Enabling customize button IDEMPIERE-364
|
//Deepak-Enabling customize button IDEMPIERE-364
|
||||||
if(!(adTabbox.getSelectedTabpanel() instanceof ADSortTab))
|
if(adTabbox.getSelectedTabpanel() instanceof ADSortTab){//consistent with updateToolbar
|
||||||
toolbar.enableCustomize(adtab.isGridView());
|
toolbar.enableProcessButton (false);
|
||||||
|
toolbar.enableCustomize(false);
|
||||||
|
}else{
|
||||||
|
ADTabpanel adtab = (ADTabpanel) adTabbox.getSelectedTabpanel();
|
||||||
|
toolbar.enableProcessButton(!isNewRow && adtab != null && adtab.getToolbarButtons().size() > 0);
|
||||||
|
toolbar.enableCustomize(adtab.isGridView());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue