Merged in release/3.3.13 (pull request #6952)
PMC-916 Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
@@ -110,7 +110,7 @@ class ActionsByEmailCoreClass extends PMPlugin
|
||||
}
|
||||
|
||||
if ($email != '') {
|
||||
$subject = G::replaceDataField( $configuration['ABE_SUBJECT_FIELD'], $caseFields['APP_DATA'] );
|
||||
$subject = G::replaceDataField( $configuration['ABE_SUBJECT_FIELD'], $caseFields['APP_DATA'], 'mysql', false );
|
||||
if($subject == ''){
|
||||
$subject = $caseFields['APP_TITLE'];
|
||||
}
|
||||
|
||||
@@ -628,7 +628,7 @@ class Cases
|
||||
$task = TaskPeer::retrieveByPk($currentDelegations[$r]->getTasUid());
|
||||
$caseLabel = $task->$getTasDef();
|
||||
if ($caseLabel != '') {
|
||||
$appLabel = G::replaceDataField($caseLabel, $aAppData);
|
||||
$appLabel = G::replaceDataField($caseLabel, $aAppData, 'mysql', false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -686,7 +686,7 @@ class Cases
|
||||
//Get the case title
|
||||
$tasDefTitle = trim($row['TAS_DEF_TITLE']);
|
||||
if (!empty($tasDefTitle) && !$flagTitle) {
|
||||
$newAppProperty = G::replaceDataField($tasDefTitle, $lastFieldsCase);
|
||||
$newAppProperty = G::replaceDataField($tasDefTitle, $lastFieldsCase, 'mysql', false);
|
||||
$res['APP_TITLE'] = $newAppProperty;
|
||||
if (!(isset($currentValue) && ($currentValue == $tasDefTitle))) {
|
||||
$newValues['APP_TITLE'] = $newAppProperty;
|
||||
@@ -696,7 +696,7 @@ class Cases
|
||||
//Get the case description
|
||||
$tasDefDescription = trim($row['TAS_DEF_DESCRIPTION']);
|
||||
if (!empty($tasDefDescription) && !$flagDescription) {
|
||||
$newAppProperty = G::replaceDataField($tasDefDescription, $lastFieldsCase);
|
||||
$newAppProperty = G::replaceDataField($tasDefDescription, $lastFieldsCase, 'mysql', false);
|
||||
$res['APP_DESCRIPTION'] = $newAppProperty;
|
||||
if (!(isset($currentValue) && ($currentValue == $tasDefDescription))) {
|
||||
$newValues['APP_DESCRIPTION'] = $newAppProperty;
|
||||
@@ -5441,7 +5441,7 @@ class Cases
|
||||
switch ($typeSend) {
|
||||
case 'LAST':
|
||||
if (isset($aTaskInfo['TAS_DEF_SUBJECT_MESSAGE']) && $aTaskInfo['TAS_DEF_SUBJECT_MESSAGE'] != '') {
|
||||
$sSubject = G::replaceDataField($aTaskInfo['TAS_DEF_SUBJECT_MESSAGE'], $arrayData);
|
||||
$sSubject = G::replaceDataField($aTaskInfo['TAS_DEF_SUBJECT_MESSAGE'], $arrayData, 'mysql', false);
|
||||
} else {
|
||||
$sSubject = G::LoadTranslation('ID_MESSAGE_SUBJECT_DERIVATION');
|
||||
}
|
||||
@@ -5526,7 +5526,7 @@ class Cases
|
||||
break;
|
||||
case 'RECEIVE':
|
||||
if (isset($aTaskInfo['TAS_RECEIVE_SUBJECT_MESSAGE']) && $aTaskInfo['TAS_RECEIVE_SUBJECT_MESSAGE'] != '') {
|
||||
$sSubject = G::replaceDataField($aTaskInfo['TAS_RECEIVE_SUBJECT_MESSAGE'], $arrayData);
|
||||
$sSubject = G::replaceDataField($aTaskInfo['TAS_RECEIVE_SUBJECT_MESSAGE'], $arrayData, 'mysql', false);
|
||||
} else {
|
||||
$sSubject = G::LoadTranslation('ID_MESSAGE_SUBJECT_DERIVATION');
|
||||
}
|
||||
@@ -5674,7 +5674,7 @@ class Cases
|
||||
) {
|
||||
@copy(PATH_TPL . "mails" . PATH_SEP . G::LoadTranslation('ID_UNASSIGNED_MESSAGE'), $fileTemplate);
|
||||
}
|
||||
$body2 = G::replaceDataField(file_get_contents($fileTemplate), $arrayData2);
|
||||
$body2 = G::replaceDataField(file_get_contents($fileTemplate), $arrayData2, 'mysql', false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -253,7 +253,7 @@ class PmDynaform
|
||||
}
|
||||
}
|
||||
}
|
||||
$sql = G::replaceDataField($json->sql, $dtFields);
|
||||
$sql = G::replaceDataField($json->sql, $dtFields, 'mysql', false);
|
||||
if ($value === "suggest") {
|
||||
$sql = $this->prepareSuggestSql($sql, $json);
|
||||
}
|
||||
@@ -715,7 +715,7 @@ class PmDynaform
|
||||
}
|
||||
}
|
||||
if ($json->dbConnection !== "" && $json->dbConnection !== "none" && $json->sql !== "") {
|
||||
$sql = G::replaceDataField($json->sql, $data);
|
||||
$sql = G::replaceDataField($json->sql, $data, 'mysql', false);
|
||||
$dt = $this->getCacheQueryData($json->dbConnection, $sql, $json->type);
|
||||
$row = isset($dt[0]) ? $dt[0] : [];
|
||||
$index = $json->variable === "" ? $json->id : $json->variable;
|
||||
|
||||
@@ -1750,7 +1750,7 @@ function PMFGenerateOutputDocument ($outputID, $sApplication = null, $index = nu
|
||||
//The $_GET['UID'] variable is used when a process executes.
|
||||
//$_GET['UID']=($aOD['OUT_DOC_VERSIONING'])?$_GET['UID']:$aOD['OUT_DOC_UID'];
|
||||
//$sUID = ($aOD['OUT_DOC_VERSIONING'])?$_GET['UID']:$aOD['OUT_DOC_UID'];
|
||||
$sFilename = preg_replace( '[^A-Za-z0-9_]', '_', G::replaceDataField( $aOD['OUT_DOC_FILENAME'], $Fields['APP_DATA'] ) );
|
||||
$sFilename = preg_replace( '[^A-Za-z0-9_]', '_', G::replaceDataField( $aOD['OUT_DOC_FILENAME'], $Fields['APP_DATA'], 'mysql', false ) );
|
||||
require_once 'classes/model/AppFolder.php';
|
||||
require_once 'classes/model/AppDocument.php';
|
||||
|
||||
|
||||
@@ -706,7 +706,7 @@ class PMScript
|
||||
try {
|
||||
$cnn = Propel::getConnection($varInfo["VAR_DBCONNECTION"]);
|
||||
$stmt = $cnn->createStatement();
|
||||
$sql = G::replaceDataField($varInfo["VAR_SQL"], $this->aFields);
|
||||
$sql = G::replaceDataField($varInfo["VAR_SQL"], $this->aFields, 'mysql', false);
|
||||
$rs = $stmt->executeQuery($sql, \ResultSet::FETCHMODE_NUM);
|
||||
while ($rs->next()) {
|
||||
$row = $rs->getRow();
|
||||
|
||||
@@ -1735,7 +1735,7 @@ class AppCacheView extends BaseAppCacheView
|
||||
$arrayAppField = $app->Load($appcvAppUid);
|
||||
|
||||
$appTitle = (!empty($appTitle))? $appTitle : "#" . $arrayAppField["APP_NUMBER"];
|
||||
$appTitleNew = G::replaceDataField($appTitle, unserialize($arrayAppField["APP_DATA"]));
|
||||
$appTitleNew = G::replaceDataField($appTitle, unserialize($arrayAppField["APP_DATA"]), 'mysql', false);
|
||||
|
||||
if (isset($arrayAppField["APP_TITLE"]) && $arrayAppField["APP_TITLE"] != $appTitleNew) {
|
||||
//Updating the value in content, where...
|
||||
|
||||
@@ -145,8 +145,7 @@ class AppFolder extends BaseAppFolder
|
||||
|
||||
$oApplication = new Application();
|
||||
$appFields = $oApplication->Load( $sessionID );
|
||||
$folderPathParsed = G::replaceDataField( $folderPath, $appFields );
|
||||
$folderPathParsed = G::replaceDataField( $folderPath, unserialize( $appFields['APP_DATA'] ) );
|
||||
$folderPathParsed = G::replaceDataField( $folderPath, unserialize( $appFields['APP_DATA'] ), 'mysql', false );
|
||||
$folderPathParsedArray = explode( "/", $folderPathParsed );
|
||||
$folderRoot = "/"; //Always starting from Root
|
||||
foreach ($folderPathParsedArray as $folderName) {
|
||||
@@ -174,8 +173,7 @@ class AppFolder extends BaseAppFolder
|
||||
|
||||
$oApplication = new Application();
|
||||
$appFields = $oApplication->Load( $sessionID );
|
||||
$fileTagsParsed = G::replaceDataField( $fileTags, $appFields );
|
||||
$fileTagsParsed = G::replaceDataField( $fileTags, unserialize( $appFields['APP_DATA'] ) );
|
||||
$fileTagsParsed = G::replaceDataField( $fileTags, unserialize( $appFields['APP_DATA'] ), 'mysql', false );
|
||||
return $fileTagsParsed;
|
||||
}
|
||||
|
||||
|
||||
@@ -213,7 +213,7 @@ class AppNotes extends BaseAppNotes
|
||||
$configNoteNotification['subject'] = G::LoadTranslation('ID_MESSAGE_SUBJECT_NOTE_NOTIFICATION') . " @#APP_TITLE ";
|
||||
//Define the body for the notification
|
||||
$configNoteNotification['body'] = $this->getBodyCaseNote($authorName, $noteContent);
|
||||
$body = nl2br(G::replaceDataField($configNoteNotification['body'], $fieldCase));
|
||||
$body = nl2br(G::replaceDataField($configNoteNotification['body'], $fieldCase, 'mysql', false));
|
||||
|
||||
$users = new Users();
|
||||
$recipientsArray = explode(",", $noteRecipients);
|
||||
@@ -229,7 +229,7 @@ class AppNotes extends BaseAppNotes
|
||||
$appUid,
|
||||
$delIndex,
|
||||
WsBase::MESSAGE_TYPE_CASE_NOTE,
|
||||
G::replaceDataField($configNoteNotification['subject'], $fieldCase),
|
||||
G::replaceDataField($configNoteNotification['subject'], $fieldCase, 'mysql', false),
|
||||
G::buildFrom($configuration, $from),
|
||||
$to,
|
||||
$body,
|
||||
|
||||
@@ -34,7 +34,7 @@ class ListInbox extends BaseListInbox implements ListInterface
|
||||
if (isset($data['APP_TITLE'])) {
|
||||
$oCase = new Cases();
|
||||
$aData = $oCase->loadCase($data["APP_UID"]);
|
||||
$data['APP_TITLE'] = G::replaceDataField($data['APP_TITLE'], $aData['APP_DATA']);
|
||||
$data['APP_TITLE'] = G::replaceDataField($data['APP_TITLE'], $aData['APP_DATA'], 'mysql', false);
|
||||
}
|
||||
if (!empty($data['PRO_UID']) && empty($data['PRO_ID'])) {
|
||||
$p = new Process();
|
||||
@@ -124,7 +124,7 @@ class ListInbox extends BaseListInbox implements ListInterface
|
||||
if (isset($data['APP_TITLE'])) {
|
||||
$oCase = new Cases();
|
||||
$aData = $oCase->loadCase($data["APP_UID"]);
|
||||
$data['APP_TITLE'] = G::replaceDataField($data['APP_TITLE'], $aData['APP_DATA']);
|
||||
$data['APP_TITLE'] = G::replaceDataField($data['APP_TITLE'], $aData['APP_DATA'], 'mysql', false);
|
||||
}
|
||||
if ($isSelfService) {
|
||||
$listParticipatedLast = new ListParticipatedLast();
|
||||
|
||||
Reference in New Issue
Block a user