PM-16288 PM falla al crear grilla como tabla de PM sobre oracle

Se quito la opcion REPORT cuando el workspace tiene una sola BD y solo se listan las conexiones de tipo MySQL.
This commit is contained in:
norahmollo
2014-12-11 16:25:25 -04:00
parent 8e11d8f958
commit 9f33fbaaae

View File

@@ -116,10 +116,19 @@ class pmTablesProxy extends HttpProxyController
$proUid = $_POST['PRO_UID']; $proUid = $_POST['PRO_UID'];
$dbConn = new DbConnections(); $dbConn = new DbConnections();
$dbConnections = $dbConn->getConnectionsProUid( $proUid ); $dbConnections = $dbConn->getConnectionsProUid( $proUid );
$defaultConnections = array (array ('DBS_UID' => 'workflow','DBS_NAME' => 'Workflow'));
$workSpace = new workspaceTools(SYS_SYS);
$workspaceDB = $workSpace->getDBInfo();
if ($workspaceDB['DB_NAME'] == $workspaceDB['DB_RBAC_NAME']) {
$defaultConnections = array (array ('DBS_UID' => 'workflow','DBS_NAME' => 'Workflow'));
} else {
$defaultConnections = array (array ('DBS_UID' => 'workflow','DBS_NAME' => 'Workflow'),
array ('DBS_UID' => 'rp','DBS_NAME' => 'REPORT'));
}
$dbConnections = array_merge( $defaultConnections, $dbConnections ); $dbConnections = array_merge( $defaultConnections, $dbConnections );
return $dbConnections; return $dbConnections;
} }