Merged in victorsl/processmaker/PM-1700 (pull request #1554)
PM-1700 "Ocurre un error al importar y actualizar un proceso..." SOLVED
This commit is contained in:
@@ -201,7 +201,7 @@ class OutputDocument extends BaseOutputDocument
|
||||
}
|
||||
$description .= ", By clicking on the generated file link: ".$genLink;
|
||||
G::auditLog("CreateOutputDocument", $description);
|
||||
|
||||
|
||||
return $aData['OUT_DOC_UID'];
|
||||
} else {
|
||||
$sMessage = '';
|
||||
@@ -329,9 +329,11 @@ class OutputDocument extends BaseOutputDocument
|
||||
Content::removeContent('OUT_DOC_TEMPLATE', '', $oOutputDocument->getOutDocUid());
|
||||
$iResult = $oOutputDocument->delete();
|
||||
$oConnection->commit();
|
||||
//Add Audit Log
|
||||
G::auditLog("DeleteOutputDocument", "Output Document Name: ".$outputName.", Output Document Uid: ".$sOutDocUid.", Description: ".$outputDesc.", Filename generated: ".$outputFile);
|
||||
|
||||
//Add Audit Log
|
||||
G::auditLog("DeleteOutputDocument", "Output Document Name: " . $oOutputDocument->getOutDocTitle() . ", Output Document Uid: " . $sOutDocUid . ", Description: " . $oOutputDocument->getOutDocDescription() . ", Filename generated: " . $oOutputDocument->getOutDocFilename());
|
||||
|
||||
//Return
|
||||
return $iResult;
|
||||
} else {
|
||||
throw (new Exception('This row doesn\'t exist!'));
|
||||
@@ -845,7 +847,7 @@ class OutputDocument extends BaseOutputDocument
|
||||
$sContent = str_ireplace("</font>", "</span>", $sContent);
|
||||
|
||||
$sContent = str_replace($nrthtml, $nrt, $sContent);
|
||||
|
||||
|
||||
$sContent = str_replace("margin-left", "text-indent", $sContent);
|
||||
|
||||
// define Save file
|
||||
|
||||
@@ -189,7 +189,7 @@ class Triggers extends BaseTriggers
|
||||
$description .= ", Description: ".$aData['TRI_DESCRIPTION'];
|
||||
}
|
||||
G::auditLog("CreateTrigger", $description);
|
||||
|
||||
|
||||
return $result;
|
||||
} else {
|
||||
$con->rollback();
|
||||
@@ -240,18 +240,14 @@ class Triggers extends BaseTriggers
|
||||
$con->begin();
|
||||
$oTri = TriggersPeer::retrieveByPK( $TriUid );
|
||||
if (!is_null($oTri)) {
|
||||
$triggerName = $this->getTriTitle();
|
||||
$triggerDesc = $this->getTriDescription();
|
||||
Content::removeContent( 'TRI_TITLE', '', $this->getTriUid());
|
||||
Content::removeContent( 'TRI_DESCRIPTION', '', $this->getTriUid());
|
||||
Content::removeContent("TRI_TITLE", "", $TriUid);
|
||||
Content::removeContent("TRI_DESCRIPTION", "", $TriUid);
|
||||
|
||||
$result = $oTri->delete();
|
||||
$con->commit();
|
||||
|
||||
//Add Audit Log
|
||||
$description = "Trigger Name: ".$triggerName.", Trigger Uid: ".$TriUid;
|
||||
if (isset ( $triggerDesc )) {
|
||||
$description .= ", Description: ".$triggerDesc;
|
||||
}
|
||||
G::auditLog("DeleteTrigger", $description);
|
||||
G::auditLog("DeleteTrigger", "Trigger Name: " . $oTri->getTriTitle() . ", Trigger Uid: " . $TriUid . ", Description: " . $oTri->getTriDescription());
|
||||
}
|
||||
return $result;
|
||||
} catch (Exception $e) {
|
||||
|
||||
Reference in New Issue
Block a user