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:
Erik Amaru Ortiz
2011-11-29 18:51:30 -04:00
parent f5053045f3
commit e469b9dd79
3 changed files with 70 additions and 5 deletions

View File

@@ -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'] );