BUG 6639 Fix Completed

Completed the changes made for GTBank related to Report Tables
This commit is contained in:
Hugo Loza
2011-04-19 15:07:20 -04:00
parent 8470922696
commit bcd2bcaa22
3 changed files with 17 additions and 14 deletions

View File

@@ -422,12 +422,14 @@ class ReportTables
try {
$oReportTable = new ReportTable();
$aFields = $oReportTable->load($sRepTabUid);
if(!(empty($aFields))){
$this->dropTable($aFields['REP_TAB_NAME'], $aFields['REP_TAB_CONNECTION']);
$oCriteria = new Criteria('workflow');
$oCriteria->add(ReportVarPeer::REP_TAB_UID, $sRepTabUid);
$oDataset = ReportVarPeer::doDelete($oCriteria);
$oReportTable->remove($sRepTabUid);
}
}
catch (Exception $oError) {
throw($oError);
}

View File

@@ -93,7 +93,8 @@ class ReportTable extends BaseReportTable {
return $aFields;
}
else {
throw( new Exception( "The row '$RepTabUid' in table ReportTable doesn't exist!" ));
//throw( new Exception( "The row '$RepTabUid' in table ReportTable doesn't exist!" ));
return array();
}
}
catch (Exception $oError) {

View File

@@ -73,7 +73,7 @@
}
// if there are duplicated groups render the group importing options
if($groupsDuplicated>0){
if((isset($groupsDuplicated))&&($groupsDuplicated>0)){
$Fields['PRO_FILENAME'] = $filename;
$Fields['PRO_PATH'] = $path;
$Fields['IMPORT_OPTION'] = $option;