BUG 8116 "Designer no todos los procesos muestran no category" SOLVED
- that was happening for imported process. on the workspace where it has been imported the process category didn't exists - It is fixed now, the process category is being imported with the process,.. so, when the process is being imported if the process category doesn't exist, it is created.
This commit is contained in:
@@ -449,6 +449,18 @@ class Process extends BaseProcess {
|
||||
$this->setProShowMessage ( $aData['PRO_SHOW_MESSAGE'] );
|
||||
$this->setProShowDelegate ( $aData['PRO_SHOW_DELEGATE'] );
|
||||
$this->setProShowDynaform ( $aData['PRO_SHOW_DYNAFORM'] );
|
||||
|
||||
// validate if the category exists
|
||||
$criteria = new Criteria('workflow');
|
||||
$criteria->add(ProcessCategoryPeer::CATEGORY_UID, $aData['PRO_CATEGORY']);
|
||||
$ds = ProcessCategoryPeer::doSelectRS ($criteria);
|
||||
$ds->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||
$ds->next();
|
||||
// if it is not set, set value as empty "No Category"
|
||||
if (!$ds->getRow()) {
|
||||
$aData['PRO_CATEGORY'] = '';
|
||||
}
|
||||
|
||||
$this->setProCategory ( $aData['PRO_CATEGORY'] );
|
||||
$this->setProSubCategory ( $aData['PRO_SUB_CATEGORY'] );
|
||||
$this->setProIndustry ( $aData['PRO_INDUSTRY'] );
|
||||
|
||||
Reference in New Issue
Block a user