Upgrade PHP files

This commit is contained in:
Fernando Ontiveros
2025-03-28 13:16:06 +00:00
parent 7f3ee186de
commit 039ade9083
83 changed files with 96 additions and 745 deletions

View File

@@ -1777,7 +1777,6 @@ class AppCacheView extends BaseAppCacheView
return $criteria;
}
/*----------------------------------********---------------------------------*/
public function fillReportByUser ($dateInit, $dateFinish)
{
$con = Propel::getConnection("workflow");
@@ -1823,6 +1822,5 @@ class AppCacheView extends BaseAppCacheView
$stmt->executeQuery($val);
}
}
/*----------------------------------********---------------------------------*/
}

View File

@@ -267,13 +267,9 @@ class AppDelegation extends BaseAppDelegation
$data->PREVIOUS_USR_UID = ($arrayAppDelegationPrevious !== false)? $arrayAppDelegationPrevious['USR_UID'] : $delPreviusUsrUid;
if ($bpmn->exists($proUid)) {
/*----------------------------------********---------------------------------*/
// this section evaluates the actions by email trigger execution please
// modify this section carefully, the if evaluation checks if the license has been
// activated in order to send the mail according to the configuration table
if (PMLicensedFeatures
::getSingleton()
->verifyfeature('zLhSk5TeEQrNFI2RXFEVktyUGpnczV1WEJNWVp6cjYxbTU3R29mVXVZNWhZQT0=')) {
$criteriaAbe = new Criteria();
$criteriaAbe->add(AbeConfigurationPeer::PRO_UID, $proUid);
$criteriaAbe->add(AbeConfigurationPeer::TAS_UID, $tasUid);
@@ -288,13 +284,7 @@ class AppDelegation extends BaseAppDelegation
$actionsByEmail->sendActionsByEmail($data, $dataAbe);
}
}
}
/*----------------------------------********---------------------------------*/
/*----------------------------------********---------------------------------*/
$licensedFeatures = PMLicensedFeatures::getSingleton();
if ($licensedFeatures->verifyfeature('7qhYmF1eDJWcEdwcUZpT0k4S0xTRStvdz09')) {
try {
$pmGoogle = new PmGoogleApi();
if ($pmGoogle->getServiceGmailStatus()) {
@@ -304,8 +294,6 @@ class AppDelegation extends BaseAppDelegation
} catch (Exception $oError) {
error_log($oError->getMessage());
}
}
/*----------------------------------********---------------------------------*/
}
if ($flagActionsByEmail) {

View File

@@ -42,12 +42,9 @@
*/
class AppDocument extends BaseAppDocument
{
/*----------------------------------********---------------------------------*/
protected $driveDownload = array();
protected $syncWithDrive = '';
protected $syncPermissions = '';
/*----------------------------------********---------------------------------*/
/*
* Load the application document registry
@@ -65,11 +62,9 @@ class AppDocument extends BaseAppDocument
if (! is_null( $oAppDocument )) {
$aFields = $oAppDocument->toArray( BasePeer::TYPE_FIELDNAME );
$this->fromArray( $aFields, BasePeer::TYPE_FIELDNAME );
/*----------------------------------********---------------------------------*/
$driveDownload = @unserialize($aFields['APP_DOC_DRIVE_DOWNLOAD']);
$driveDownload = $driveDownload !== false ? $driveDownload : array();
$oAppDocument->driveDownload = $driveDownload;
/*----------------------------------********---------------------------------*/
return $aFields;
} else {
throw (new Exception( 'Error loading Document ' . $sAppDocUid . '/' . $iVersion . '. This row doesn\'t exist!' ));
@@ -193,10 +188,8 @@ class AppDocument extends BaseAppDocument
$docVersion ++;
}
/*----------------------------------********---------------------------------*/
$aData['APP_DOC_DRIVE_DOWNLOAD'] = serialize($this->driveDownload);
//$aData['SYNC_PERMISSIONS'] = $this->syncPermissions;
/*----------------------------------********---------------------------------*/
$oAppDocument->fromArray( $aData, BasePeer::TYPE_FIELDNAME );
$oAppDocument->setDocVersion( $docVersion );
@@ -245,7 +238,6 @@ class AppDocument extends BaseAppDocument
$oAppDocument = AppDocumentPeer::retrieveByPK( $aData['APP_DOC_UID'], $aData['DOC_VERSION'] );
if (! is_null( $oAppDocument )) {
/*----------------------------------********---------------------------------*/
$driveDownload = @unserialize($oAppDocument->getAppDocDriveDownload());
if ($driveDownload !== false) {
$aData['APP_DOC_DRIVE_DOWNLOAD'] = serialize(array_merge($driveDownload, $this->driveDownload));
@@ -256,7 +248,6 @@ class AppDocument extends BaseAppDocument
//$aData['SYNC_WITH_DRIVE'] = $this->syncWithDrive;
//$oAppDocument->setSyncWithDrive($aData['SYNC_WITH_DRIVE']);
//$oAppDocument->sync_with_drive = $aData['SYNC_WITH_DRIVE'];
/*----------------------------------********---------------------------------*/
$oAppDocument->fromArray( $aData, BasePeer::TYPE_FIELDNAME );
if ($oAppDocument->validate()) {
$oConnection->begin();
@@ -475,7 +466,6 @@ class AppDocument extends BaseAppDocument
return true;
}
/*----------------------------------********---------------------------------*/
public function setDriveDownload($key, $value)
{
$this->driveDownload[$key] = $value;
@@ -489,7 +479,6 @@ class AppDocument extends BaseAppDocument
}
return $url;
}
/*----------------------------------********---------------------------------*/
public function getObject ($APP_UID, $DEL_INDEX, $STEP_UID_OBJ, $APP_DOC_TYPE)
{

View File

@@ -420,7 +420,6 @@ class Application extends BaseApplication
return $this->getAppUid();
}
/*----------------------------------********---------------------------------*/
public function calculateAppDuration ($cron = 0)
{
try {
@@ -524,6 +523,5 @@ class Application extends BaseApplication
error_log( $oError->getMessage() );
}
}
/*----------------------------------********---------------------------------*/
}

View File

@@ -424,7 +424,7 @@ class ObjectPermission extends BaseObjectPermission
public function objectPermissionByReassignCases($appUid, $proUid, $tasUid = '')
{
$result = [];
/*----------------------------------********---------------------------------*/
$criteria = new Criteria('workflow');
$criteria->addSelectColumn(ApplicationPeer::APP_UID);
$criteria->add(ApplicationPeer::APP_UID, $appUid, Criteria::EQUAL);
@@ -445,7 +445,6 @@ class ObjectPermission extends BaseObjectPermission
$result[] = $row['APP_UID'];
}
/*----------------------------------********---------------------------------*/
return $result;
}

View File

@@ -506,12 +506,10 @@ class Task extends BaseTask
//Populating attributes
$this->setNew(false);
/*----------------------------------********---------------------------------*/
$indicator = new IndicatorsCalculator();
$data = $indicator->suggestedTimeForTask($tasUid);
$fields["TAS_AVERAGE"] = $data['average'];
$fields["TAS_SDV"] = $data['sdv'];
/*----------------------------------********---------------------------------*/
return $fields;
} else {

View File

@@ -511,14 +511,11 @@ class UsersProperties extends BaseUsersProperties
$url = 'dashboard/main';
}
break;
/*----------------------------------********---------------------------------*/
case 'PM_STRATEGIC_DASHBOARD':
$licensedFeatures = PMLicensedFeatures::getSingleton();
if ($licensedFeatures->verifyfeature('r19Vm5DK1UrT09MenlLYjZxejlhNUZ1b1NhV0JHWjBsZEJ6dnpJa3dTeWVLVT0=') && $RBAC->userCanAccess('PM_SETUP') == 1) {
if ($RBAC->userCanAccess('PM_SETUP') == 1) {
$url = 'strategicDashboard/main';
}
break;
/*----------------------------------********---------------------------------*/
}
}