Merge branch 'master' of github.com:colosa/processmaker
Conflicts: workflow/engine/classes/model/Process.php
This commit is contained in:
@@ -303,7 +303,7 @@ class Event extends BaseEvent
|
||||
$oTP = new TemplatePower( PATH_TPL . 'events' . PATH_SEP . 'sendMessage.tpl' );
|
||||
$oTP->prepare();
|
||||
|
||||
$oTP->assign( 'from', 'info@processmaker.com' );
|
||||
$oTP->assign( 'from', '<info@processmaker.com>' );
|
||||
$oTP->assign( 'subject', addslashes( $aData['EVN_ACTION_PARAMETERS']['SUBJECT'] ) );
|
||||
$oTP->assign( 'template', $aData['EVN_ACTION_PARAMETERS']['TEMPLATE'] );
|
||||
$oTP->assign( 'timestamp', date( "l jS \of F Y h:i:s A" ) );
|
||||
@@ -504,9 +504,9 @@ class Event extends BaseEvent
|
||||
$when = (float) $aData['EVN_WHEN'];
|
||||
$whenOccurs = $aData['EVN_WHEN_OCCURS'];
|
||||
|
||||
if ($oCalendar->pmCalendarUid == '') {
|
||||
$oCalendar->getCalendar(null, $aData['PRO_UID'], $aData['TAS_UID']);
|
||||
$oCalendar->getCalendarData();
|
||||
if ($oCalendar->pmCalendarUid == '') {
|
||||
$oCalendar->getCalendar(null, $aData['PRO_UID'], $aData['TAS_UID']);
|
||||
$oCalendar->getCalendarData();
|
||||
}
|
||||
|
||||
if ($whenOccurs == 'AFTER_TIME') {
|
||||
@@ -620,9 +620,9 @@ class Event extends BaseEvent
|
||||
$when = (float) $aData['EVN_WHEN'];
|
||||
$whenOccurs = $aData['EVN_WHEN_OCCURS'];
|
||||
|
||||
if ($oCalendar->pmCalendarUid == '') {
|
||||
$oCalendar->getCalendar(null, $aData['PRO_UID'], $aData['TAS_UID']);
|
||||
$oCalendar->getCalendarData();
|
||||
if ($oCalendar->pmCalendarUid == '') {
|
||||
$oCalendar->getCalendar(null, $aData['PRO_UID'], $aData['TAS_UID']);
|
||||
$oCalendar->getCalendarData();
|
||||
}
|
||||
|
||||
if ($whenOccurs == 'AFTER_TIME') {
|
||||
@@ -880,9 +880,9 @@ class Event extends BaseEvent
|
||||
$when = $aData['EVN_WHEN']; //how many days
|
||||
$whenOccurs = $aData['EVN_WHEN_OCCURS']; //time on action (AFTER_TIME/TASK_STARTED)
|
||||
|
||||
if ($oCalendar->pmCalendarUid == '') {
|
||||
$oCalendar->getCalendar(null, $aData['PRO_UID'], $aData['TAS_UID']);
|
||||
$oCalendar->getCalendarData();
|
||||
if ($oCalendar->pmCalendarUid == '') {
|
||||
$oCalendar->getCalendar(null, $aData['PRO_UID'], $aData['TAS_UID']);
|
||||
$oCalendar->getCalendarData();
|
||||
}
|
||||
|
||||
if ($whenOccurs == 'TASK_STARTED') {
|
||||
|
||||
@@ -477,7 +477,7 @@ class OutputDocument extends BaseOutputDocument
|
||||
public function generate($sUID, $aFields, $sPath, $sFilename, $sContent, $sLandscape = false, $sTypeDocToGener = 'BOTH', $aProperties = array())
|
||||
{
|
||||
if (($sUID != '') && is_array($aFields) && ($sPath != '')) {
|
||||
$sContent = nl2br(G::replaceDataGridField($sContent, $aFields));
|
||||
$sContent = G::replaceDataGridField($sContent, $aFields);
|
||||
|
||||
G::verifyPath($sPath, true);
|
||||
|
||||
|
||||
@@ -725,7 +725,7 @@ class Process extends BaseProcess
|
||||
$process['PRO_CREATE_DATE'] = date( $creationDateMask, mktime( $h, $i, $s, $m, $d, $y ) );
|
||||
}
|
||||
|
||||
$process['PRO_CATEGORY_LABEL'] = trim( $process['PRO_CATEGORY'] ) != '' ? $process['CATEGORY_NAME'] : G::LoadTranslation( 'ID_PROCESS_NO_CATEGORY' );
|
||||
$process['PRO_CATEGORY_LABEL'] = trim( $process['PRO_CATEGORY'] ) != '' ? $process['CATEGORY_NAME'] : '- ' . G::LoadTranslation( 'ID_PROCESS_NO_CATEGORY' ) . ' -';
|
||||
$process['PRO_TITLE'] = $proTitle;
|
||||
$process['PRO_DESCRIPTION'] = $proDescription;
|
||||
$process['PRO_DEBUG'] = $process['PRO_DEBUG'];
|
||||
@@ -885,9 +885,9 @@ class Process extends BaseProcess
|
||||
if (($this->sort) == '') {
|
||||
$this->sort = 'PRO_TITLE';
|
||||
}
|
||||
if ($a[$this->sort] > $b[$this->sort]) {
|
||||
if (strtolower($a[$this->sort]) > strtolower($b[$this->sort])) {
|
||||
return 1;
|
||||
} elseif ($a[$this->sort] < $b[$this->sort]) {
|
||||
} elseif (strtolower($a[$this->sort]) < strtolower($b[$this->sort])) {
|
||||
return - 1;
|
||||
} else {
|
||||
return 0;
|
||||
@@ -899,9 +899,9 @@ class Process extends BaseProcess
|
||||
if (($this->sort) == '') {
|
||||
$this->sort = 'PRO_TITLE';
|
||||
}
|
||||
if ($a[$this->sort] > $b[$this->sort]) {
|
||||
if (strtolower($a[$this->sort]) > strtolower($b[$this->sort])) {
|
||||
return - 1;
|
||||
} elseif ($a[$this->sort] < $b[$this->sort]) {
|
||||
} elseif (strtolower($a[$this->sort]) < strtolower($b[$this->sort])) {
|
||||
return 1;
|
||||
} else {
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user