BF[2779278] Document Action Access bug
This commit is contained in:
parent
4bbd214d51
commit
6050c6a05f
|
@ -149,6 +149,18 @@ public class WDocActionPanel extends Window implements EventListener
|
|||
String[] docActionHolder = new String[]{DocAction};
|
||||
index = DocumentEngine.getValidActions(DocStatus, Processing, OrderType, IsSOTrx,
|
||||
m_AD_Table_ID, docActionHolder, options);
|
||||
|
||||
Integer doctypeId = (Integer)gridTab.getValue("C_DocType_ID");
|
||||
if(doctypeId==null || doctypeId.intValue()==0){
|
||||
doctypeId = (Integer)gridTab.getValue("C_DocTypeTarget_ID");
|
||||
}
|
||||
logger.fine("get doctype: " + doctypeId);
|
||||
if (doctypeId != null) {
|
||||
index = DocumentEngine.checkActionAccess(Env.getAD_Client_ID(Env.getCtx()),
|
||||
Env.getAD_Role_ID(Env.getCtx()),
|
||||
doctypeId, options, index);
|
||||
}
|
||||
|
||||
DocAction = docActionHolder[0];
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue