I replace the code with a function isBpmnProcess
This commit is contained in:
@@ -1019,14 +1019,11 @@ try {
|
||||
}
|
||||
//Add content content step - End
|
||||
} catch (Exception $e) {
|
||||
//Check if the process is BPMN
|
||||
$c = new Criteria("workflow");
|
||||
$c->add(BpmnProcessPeer::PRJ_UID, $_SESSION['PROCESS']);
|
||||
$res = BpmnProcessPeer::doSelect($c);
|
||||
if( sizeof($res) == 0 ){
|
||||
G::SendTemporalMessage( G::LoadTranslation( 'ID_PROCESS_DEF_PROBLEM' ), 'error', 'string', 3, 100 );
|
||||
//Check if the process is BPMN
|
||||
if(isset($oProcessFieds['PRO_BPMN']) && $oProcessFieds['PRO_BPMN'] == 1){
|
||||
G::SendTemporalMessage( G::LoadTranslation( 'ID_BPMN_PROCESS_DEF_PROBLEM' ), 'error', 'string', 3, 100 );
|
||||
}else{
|
||||
G::SendTemporalMessage( G::LoadTranslation( 'ID_BPMN_PROCESS_DEF_PROBLEM' ), 'error', 'string', 3, 100 );
|
||||
G::SendTemporalMessage( G::LoadTranslation( 'ID_PROCESS_DEF_PROBLEM' ), 'error', 'string', 3, 100 );
|
||||
}
|
||||
|
||||
$aMessage = array ();
|
||||
|
||||
Reference in New Issue
Block a user