Merge branch 'develop' of bitbucket.org:colosa/processmaker into bugfix/HOR-3306
This commit is contained in:
@@ -29,6 +29,18 @@ class Designer extends Controller
|
||||
$client = $this->getClientCredentials();
|
||||
|
||||
if (isset($httpData->tracker_designer) && $httpData->tracker_designer == 1) {
|
||||
try {
|
||||
if (!isset($_SESSION['CASE']) && !isset($_SESSION['PIN'])) {
|
||||
throw (new \Exception(
|
||||
\G::LoadTranslation('ID_CASE_NOT_EXISTS') . "\n" . \G::LoadTranslation('ID_PIN_INVALID')
|
||||
));
|
||||
}
|
||||
\ProcessMaker\BusinessModel\Light\Tracker::authentication($_SESSION['CASE'], $_SESSION['PIN']);
|
||||
} catch (\Exception $e) {
|
||||
Bootstrap::registerMonolog('CaseTracker', 400, $e->getMessage(), [], SYS_SYS, 'processmaker.log');
|
||||
\G::header('Location: /errors/error403.php');
|
||||
die();
|
||||
}
|
||||
$client["tracker_designer"] = 1;
|
||||
}
|
||||
|
||||
|
||||
@@ -38,10 +38,18 @@ class Installer extends Controller
|
||||
|
||||
public function index ($httpData)
|
||||
{
|
||||
if (file_exists(FILE_PATHS_INSTALLED)) {
|
||||
$this->setJSVar('messageError', G::LoadTranslation('ID_PROCESSMAKER_ALREADY_INSTALLED'));
|
||||
$this->includeExtJS('installer/stopInstall');
|
||||
$this->setView('installer/mainStopInstall');
|
||||
G::RenderPage('publish', 'extJs');
|
||||
return;
|
||||
}
|
||||
if ((strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') && (file_exists($this->path_shared . 'partner.info'))) {
|
||||
$this->includeExtJS( 'installer/stopInstall');
|
||||
$this->setView( 'installer/mainStopInstall' );
|
||||
G::RenderPage( 'publish', 'extJs' );
|
||||
$this->setJSVar('messageError', G::LoadTranslation('ID_NO_INSTALL'));
|
||||
$this->includeExtJS('installer/stopInstall');
|
||||
$this->setView('installer/mainStopInstall');
|
||||
G::RenderPage('publish', 'extJs');
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,6 +3,12 @@
|
||||
class ProcessProxy extends HttpProxyController
|
||||
{
|
||||
|
||||
public function call ($name)
|
||||
{
|
||||
global $RBAC;
|
||||
$RBAC->allows(basename(__FILE__), $name);
|
||||
parent::call($name);
|
||||
}
|
||||
/**
|
||||
* get Process Categories List with defailt value (empty option) and -All- aoption
|
||||
*/
|
||||
@@ -50,53 +56,6 @@ class ProcessProxy extends HttpProxyController
|
||||
}
|
||||
|
||||
$sProUid = $project->getUid();
|
||||
|
||||
|
||||
// require_once 'classes/model/Task.php';
|
||||
// G::LoadClass( 'processMap' );
|
||||
// $oProcessMap = new ProcessMap();
|
||||
//
|
||||
// $httpData->PRO_TITLE = trim( $httpData->PRO_TITLE );
|
||||
//
|
||||
// try {
|
||||
// if (! isset( $httpData->PRO_UID )) {
|
||||
// if (Process::existsByProTitle( $httpData->PRO_TITLE )) {
|
||||
// $result = array ('success' => false,'msg' => G::LoadTranslation( 'ID_SAVE_PROCESS_ERROR' ),'errors' => array ('PRO_TITLE' => G::LoadTranslation( 'ID_PROCESSTITLE_ALREADY_EXISTS', SYS_LANG, Array ('PRO_TITLE' => $httpData->PRO_TITLE
|
||||
// ) )
|
||||
// )
|
||||
// );
|
||||
// print G::json_encode( $result );
|
||||
// exit( 0 );
|
||||
// }
|
||||
//
|
||||
// $processData['USR_UID'] = $_SESSION['USER_LOGGED'];
|
||||
// $processData['PRO_TITLE'] = $httpData->PRO_TITLE;
|
||||
// $processData['PRO_DESCRIPTION'] = $httpData->PRO_DESCRIPTION;
|
||||
// $processData['PRO_CATEGORY'] = $httpData->PRO_CATEGORY;
|
||||
//
|
||||
// $sProUid = $oProcessMap->createProcess( $processData );
|
||||
//
|
||||
// //call pluginsx
|
||||
// $oData['PRO_UID'] = $sProUid;
|
||||
// $oData['PRO_TEMPLATE'] = isset( $httpData->PRO_TEMPLATE ) && $httpData->PRO_TEMPLATE != '' ? $httpData->PRO_TEMPLATE : '';
|
||||
// $oData['PROCESSMAP'] = $oProcessMap;
|
||||
//
|
||||
// $oPluginRegistry = & PMPluginRegistry::getSingleton();
|
||||
// $oPluginRegistry->executeTriggers( PM_NEW_PROCESS_SAVE, $oData );
|
||||
//
|
||||
// } else {
|
||||
// //$oProcessMap->updateProcess($_POST['form']);
|
||||
// $sProUid = $httpData->PRO_UID;
|
||||
// }
|
||||
//
|
||||
// //Save Calendar ID for this process
|
||||
// if (isset( $httpData->PRO_CALENDAR )) {
|
||||
// G::LoadClass( "calendar" );
|
||||
// $calendarObj = new Calendar();
|
||||
// $calendarObj->assignCalendarTo( $sProUid, $httpData->PRO_CALENDAR, 'PROCESS' );
|
||||
// }
|
||||
//
|
||||
|
||||
$this->success = true;
|
||||
$this->PRO_UID = $sProUid;
|
||||
$this->msg = G::LoadTranslation( 'ID_CREATE_PROCESS_SUCCESS' );
|
||||
|
||||
Reference in New Issue
Block a user