From 8e11d8f9583792f55fd390382ceb724cbd966735 Mon Sep 17 00:00:00 2001 From: norahmollo Date: Wed, 10 Dec 2014 11:40:53 -0400 Subject: [PATCH] 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. --- workflow/engine/classes/class.dbConnections.php | 3 ++- workflow/engine/controllers/pmTablesProxy.php | 5 +---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/workflow/engine/classes/class.dbConnections.php b/workflow/engine/classes/class.dbConnections.php index 2a027c125..3e3d709a7 100755 --- a/workflow/engine/classes/class.dbConnections.php +++ b/workflow/engine/classes/class.dbConnections.php @@ -154,8 +154,9 @@ class dbConnections $result = DbSourcePeer::doSelectRS( $c ); $result->next(); $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] ); } diff --git a/workflow/engine/controllers/pmTablesProxy.php b/workflow/engine/controllers/pmTablesProxy.php index 6554fc2a0..33bd8f047 100755 --- a/workflow/engine/controllers/pmTablesProxy.php +++ b/workflow/engine/controllers/pmTablesProxy.php @@ -116,10 +116,7 @@ class pmTablesProxy extends HttpProxyController $proUid = $_POST['PRO_UID']; $dbConn = new DbConnections(); $dbConnections = $dbConn->getConnectionsProUid( $proUid ); - $defaultConnections = array (array ('DBS_UID' => 'workflow','DBS_NAME' => 'Workflow' - ),array ('DBS_UID' => 'rp','DBS_NAME' => 'REPORT' - ) - ); + $defaultConnections = array (array ('DBS_UID' => 'workflow','DBS_NAME' => 'Workflow')); $dbConnections = array_merge( $defaultConnections, $dbConnections );