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

@@ -19,7 +19,9 @@ require_once 'classes/model/om/BaseProcessCategory.php';
* @package workflow.engine.classes.model
*/
class ProcessCategory extends BaseProcessCategory {
function getAll($type='criteria'){
function getAll($type='criteria')
{
$c = new Criteria('workflow');
$c->addSelectColumn(ProcessCategoryPeer::CATEGORY_UID);
$c->addSelectColumn(ProcessCategoryPeer::CATEGORY_NAME);
@@ -32,7 +34,8 @@ class ProcessCategory extends BaseProcessCategory {
$result[] = $dataset->getRow();
}
return $result;
} else {
}
else {
return $c;
}
}