This commit is contained in:
Roly Rudy Gutierrez Pinto
2016-11-11 12:34:54 -04:00
parent 00cae19c5a
commit 198929f796
7 changed files with 5 additions and 46 deletions

View File

@@ -4541,8 +4541,6 @@ class Cases
$confEnvSetting = $conf->getFormats();
//verifica si existe la tabla OBJECT_PERMISSION
$this->verifyTable();
$listing = false;
$oPluginRegistry = & PMPluginRegistry::getSingleton();
if ($oPluginRegistry->existsTrigger(PM_CASE_DOCUMENT_LIST)) {
@@ -4853,9 +4851,6 @@ class Cases
$conf = new Configurations();
$confEnvSetting = $conf->getFormats();
//verifica si la tabla OBJECT_PERMISSION
$this->verifyTable();
$listing = false;
$oPluginRegistry = & PMPluginRegistry::getSingleton();
if ($oPluginRegistry->existsTrigger(PM_CASE_DOCUMENT_LIST)) {
@@ -5091,9 +5086,6 @@ class Cases
public function getallDynaformsCriteria($sProcessUID, $sApplicationUID, $sTasKUID, $sUserUID, $delIndex = 0)
{
//check OBJECT_PERMISSION table
$this->verifyTable();
$aObjectPermissions = $this->getAllObjects($sProcessUID, $sApplicationUID, $sTasKUID, $sUserUID, $delIndex);
if (!is_array($aObjectPermissions)) {
$aObjectPermissions = array(
@@ -6085,31 +6077,6 @@ class Cases
return $caseTracker;
}
/*
* This funcion creates a temporally OBJECT_PERMISSION table
* by Everth The Answer
*
* @name verifyTable
* @param
* @return object
*/
public function verifyTable()
{
$oCriteria = new Criteria('workflow');
$del = DBAdapter::getStringDelimiter();
$sDataBase = 'database_' . strtolower(DB_ADAPTER);
if (G::LoadSystemExist($sDataBase)) {
G::LoadSystem($sDataBase);
$oDataBase = new database();
$sql = $oDataBase->createTableObjectPermission();
}
$con = Propel::getConnection("workflow");
$stmt = $con->prepareStatement($sql);
$rs = $stmt->executeQuery();
}
/*
* funcion input documents for case tracker
* by Everth The Answer