Merge pull request #1274 from julceslauhub/master
Add more validations to avoid notices and warnings
This commit is contained in:
@@ -436,6 +436,9 @@ class Publisher
|
|||||||
}
|
}
|
||||||
$G_FORM->xmlform->fileXml = $G_FORM->fileName;
|
$G_FORM->xmlform->fileXml = $G_FORM->fileName;
|
||||||
$G_FORM->xmlform->home = $G_FORM->home;
|
$G_FORM->xmlform->home = $G_FORM->home;
|
||||||
|
if (!isset($G_FORM->xmlform->tree)) {
|
||||||
|
$G_FORM->xmlform->tree = new stdclass();
|
||||||
|
}
|
||||||
$G_FORM->xmlform->tree->attribute = $G_FORM->tree->attributes;
|
$G_FORM->xmlform->tree->attribute = $G_FORM->tree->attributes;
|
||||||
if (is_array( $Part['Data'] )) {
|
if (is_array( $Part['Data'] )) {
|
||||||
$G_FORM->values = array_merge( $G_FORM->values, $Part['Data'] );
|
$G_FORM->values = array_merge( $G_FORM->values, $Part['Data'] );
|
||||||
|
|||||||
@@ -89,7 +89,9 @@ class processMap
|
|||||||
$oProcess = new Process();
|
$oProcess = new Process();
|
||||||
|
|
||||||
$aRow = $oProcess->load( $sProcessUID );
|
$aRow = $oProcess->load( $sProcessUID );
|
||||||
|
$oPM->title = new stdclass();
|
||||||
$oPM->title->label = strip_tags( $aRow['PRO_TITLE'] );
|
$oPM->title->label = strip_tags( $aRow['PRO_TITLE'] );
|
||||||
|
$oPM->title->position = new stdclass();
|
||||||
$oPM->title->position->x = $aRow['PRO_TITLE_X'];
|
$oPM->title->position->x = $aRow['PRO_TITLE_X'];
|
||||||
$oPM->title->position->y = $aRow['PRO_TITLE_Y'];
|
$oPM->title->position->y = $aRow['PRO_TITLE_Y'];
|
||||||
$oPM->task = array ();
|
$oPM->task = array ();
|
||||||
@@ -368,8 +370,10 @@ class processMap
|
|||||||
}
|
}
|
||||||
$oPM->executant[] = G::LoadTranslation( 'ID_RULES_AND_USER_GROUPS' );
|
$oPM->executant[] = G::LoadTranslation( 'ID_RULES_AND_USER_GROUPS' );
|
||||||
$oPM->executant[] = G::LoadTranslation( 'ID_ADD_USER_OF_TASK' );
|
$oPM->executant[] = G::LoadTranslation( 'ID_ADD_USER_OF_TASK' );
|
||||||
|
$oPM->tasExtra[0] = new stdclass();
|
||||||
$oPM->tasExtra[0]->label = '-- ' . G::LoadTranslation( 'ID_END_OF_PROCESS' ) . ' --';
|
$oPM->tasExtra[0]->label = '-- ' . G::LoadTranslation( 'ID_END_OF_PROCESS' ) . ' --';
|
||||||
$oPM->tasExtra[0]->uid = 'end';
|
$oPM->tasExtra[0]->uid = 'end';
|
||||||
|
$oPM->tasExtra[1] = new stdclass();
|
||||||
$oPM->tasExtra[1]->label = '-- ' . G::LoadTranslation( 'ID_TAREA_COLGANTE' ) . ' --';
|
$oPM->tasExtra[1]->label = '-- ' . G::LoadTranslation( 'ID_TAREA_COLGANTE' ) . ' --';
|
||||||
$oPM->tasExtra[1]->uid = 'leaf';
|
$oPM->tasExtra[1]->uid = 'leaf';
|
||||||
$oPM->guide = array ();
|
$oPM->guide = array ();
|
||||||
|
|||||||
Reference in New Issue
Block a user