this bug 6305 was fixed, now the fields of type int are checked into webEntry
This commit is contained in:
@@ -529,6 +529,58 @@ class Step extends BaseStep {
|
||||
|
||||
return StepPeer::doSelect($c);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the uids of the grids into a xml form
|
||||
*
|
||||
* @param string $sproUid the uid of the process
|
||||
* @param string $sdbsUid the uid of the db connection
|
||||
* @author krlos <carlos@colosa.com>
|
||||
*/
|
||||
function lookingforUidGrids($sproUid,$sObjUID) {
|
||||
|
||||
require_once ( "classes/model/DynaformPeer.php" );
|
||||
G::LoadSystem('dynaformhandler');
|
||||
$uidsGrids=array();
|
||||
$oC = new Criteria('workflow');
|
||||
$oC->add(DynaformPeer::DYN_UID, $sObjUID);
|
||||
$oC->add(DynaformPeer::PRO_UID, $sproUid);
|
||||
$oDataset = DynaformPeer::doSelectRS($oC);
|
||||
$oDataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||
$oDataset->next();
|
||||
$aRow = $oDataset->getRow();
|
||||
|
||||
if($aRow['DYN_TYPE']=='xmlform') {
|
||||
|
||||
$oC1 = new Criteria('workflow');
|
||||
$oC1->add(DynaformPeer::PRO_UID, $sproUid);
|
||||
$oC1->add(DynaformPeer::DYN_TYPE, "xmlform");
|
||||
$oDataset = DynaformPeer::doSelectRS($oC1);
|
||||
$oDataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||
while($oDataset->next()){
|
||||
$aRow1 = $oDataset->getRow();
|
||||
|
||||
$dynHandler = new dynaFormHandler(PATH_DYNAFORM.$sproUid."/".$sObjUID.".xml");
|
||||
$dynFields = $dynHandler->getFields();
|
||||
$sxmlgrid = '';
|
||||
$sType = '';
|
||||
$check=0;
|
||||
foreach($dynFields as $field){
|
||||
$sType = $this->getAttribute($field, 'type');
|
||||
|
||||
if($sType == 'grid'){
|
||||
$sxmlgrid = $this->getAttribute($field, 'xmlgrid');
|
||||
//print_r($sxmlgrid);print"<hr>";
|
||||
$aGridInfo= explode("/",$sxmlgrid);
|
||||
$uidsGrids[]=$aGridInfo[1];
|
||||
}
|
||||
}
|
||||
}
|
||||
return ($uidsGrids);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
} // Step
|
||||
|
||||
|
||||
Reference in New Issue
Block a user