IDEMPIERE-3355 Toolbar Process Button is always active even if has no process / integrate patch suggested by Vinicius Henrique Moraes (ViniMoraes)
This commit is contained in:
parent
bf003a0d0c
commit
ce7b42b55d
|
@ -1669,7 +1669,8 @@ 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();
|
||||||
toolbar.enableProcessButton(!isNewRow);
|
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,7 +1686,7 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
||||||
|
|
||||||
//Deepak-Enabling customize button IDEMPIERE-364
|
//Deepak-Enabling customize button IDEMPIERE-364
|
||||||
if(!(adTabbox.getSelectedTabpanel() instanceof ADSortTab))
|
if(!(adTabbox.getSelectedTabpanel() instanceof ADSortTab))
|
||||||
toolbar.enableCustomize(((ADTabpanel)adTabbox.getSelectedTabpanel()).isGridView());
|
toolbar.enableCustomize(adtab.isGridView());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue