BUG 8369 Problem when using the new editor for PM Tables ... SOLVED

- There is a major problem when using the new editor for PM Tables with Database Connections, if you choose a database connection (anything you have created as a Database Connection in process designer).
- Fix-bug and Addition of session variable in the different connections PMTables(Victor).
This commit is contained in:
Hector Cortez
2012-06-25 15:26:44 -04:00
parent 7b677377bb
commit bee524e789
2 changed files with 7 additions and 1 deletions

View File

@@ -320,7 +320,10 @@ class AdditionalTables extends BaseAdditionalTables {
function getAllData($sUID, $start=NULL, $limit=NULL, $keyOrderUppercase = true)
{
$addTab = new AdditionalTables();
$aData = $addTab->load($sUID, true);
$aData = $addTab->load($sUID, true);
if (! isset($_SESSION['PROCESS'])) {
$_SESSION["PROCESS"] = $aData['PRO_UID'];
}
$aData['DBS_UID'] = $aData['DBS_UID'] ? $aData['DBS_UID'] : 'workflow';
$sPath = PATH_DB . SYS_SYS . PATH_SEP . 'classes' . PATH_SEP;
$sClassName = ($aData['ADD_TAB_CLASS_NAME'] != '' ? $aData['ADD_TAB_CLASS_NAME'] : $this->getPHPName($aData['ADD_TAB_NAME']));

View File

@@ -109,6 +109,9 @@ class pmTablesProxy extends HttpProxyController
*/
public function getDbConnectionsList()
{
if (! isset($_SESSION['PROCESS'])) {
$_SESSION['PROCESS'] = $_POST['PRO_UID'];
}
G::LoadClass ( 'dbConnections');
$proUid = $_POST['PRO_UID'];
$dbConn = new DbConnections();