PM-16288 PM falla al crear grilla como tabla de PM sobre oracle
Se quito la opcion REPORT y solo se listan las conexiones de tipo MySQL.
This commit is contained in:
@@ -154,8 +154,9 @@ class dbConnections
|
|||||||
$result = DbSourcePeer::doSelectRS( $c );
|
$result = DbSourcePeer::doSelectRS( $c );
|
||||||
$result->next();
|
$result->next();
|
||||||
$row = $result->getRow();
|
$row = $result->getRow();
|
||||||
|
|
||||||
while ($row = $result->getRow()) {
|
while ($row = $result->getRow()) {
|
||||||
if (trim( $pProUid ) == trim( $row[1] )) {
|
if ((trim( $pProUid ) == trim( $row[1] )) && ($row[2] == 'mysql')) {
|
||||||
$connections[] = Array ('DBS_UID' => $row[0],'DBS_NAME' => '[' . $row[3] . '] ' . $row[2] . ': ' . $row[4]
|
$connections[] = Array ('DBS_UID' => $row[0],'DBS_NAME' => '[' . $row[3] . '] ' . $row[2] . ': ' . $row[4]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -116,10 +116,7 @@ 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'
|
$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 );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user