Import Permissons Cases notes with groups SOLVED
Import Permissons Cases notes with groups
This commit is contained in:
@@ -2108,6 +2108,31 @@ class Processes
|
||||
}
|
||||
#@!neyek
|
||||
|
||||
/**
|
||||
* Get Object Permission Rows from a Process
|
||||
*
|
||||
* @param string $sProUid
|
||||
* @return $aDynaform array
|
||||
*/
|
||||
public function getGroupwfSupervisor ($sProUid, &$oData)
|
||||
{
|
||||
try {
|
||||
$oCriteria = new Criteria( 'workflow' );
|
||||
$oCriteria->add(ProcessUserPeer::PRO_UID, $sProUid );
|
||||
$oCriteria->add(ProcessUserPeer::PU_TYPE, 'GROUP_SUPERVISOR' );
|
||||
$oDataset = ProcessUserPeer::doSelectRS( $oCriteria );
|
||||
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
||||
$oDataset->next();
|
||||
while ($aRow = $oDataset->getRow()) {
|
||||
$oGroupwf = new Groupwf();
|
||||
$oData->groupwfs[] = $oGroupwf->Load( $aRow['USR_UID'] );
|
||||
$oDataset->next();
|
||||
}
|
||||
return true;
|
||||
} catch (Exception $oError) {
|
||||
throw ($oError);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create Dynaform Rows for a Process form an array
|
||||
@@ -2595,6 +2620,7 @@ class Processes
|
||||
$oData->event = $this->getEventRow( $sProUid );
|
||||
$oData->caseScheduler = $this->getCaseSchedulerRow( $sProUid );
|
||||
$oData->processCategory = $this->getProcessCategoryRow( $sProUid );
|
||||
$this->getGroupwfSupervisor( $sProUid, $oData);
|
||||
|
||||
//krumo ($oData);die;
|
||||
//$oJSON = new Services_JSON();
|
||||
|
||||
Reference in New Issue
Block a user