Merge branch 'master' of bitbucket.org:colosa/processmaker into master-core
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -68,7 +68,8 @@ class PMLicensedFeatures
|
||||
if (!class_exists("pmLicenseManager")) {
|
||||
require_once ("classes" . PATH_SEP . "class.pmLicenseManager.php");
|
||||
}
|
||||
$licenseManager = pmLicenseManager::getSingleton();
|
||||
|
||||
$licenseManager = pmLicenseManager::getSingleton(false);
|
||||
|
||||
$_SESSION['__sw__'] = true;
|
||||
$padl = new padl();
|
||||
|
||||
@@ -10,7 +10,7 @@ class pmLicenseManager
|
||||
|
||||
private static $instance = null;
|
||||
|
||||
public function __construct()
|
||||
public function __construct($flagActivatePlugins = true)
|
||||
{
|
||||
G::LoadClass('serverConfiguration');
|
||||
$oServerConf = &serverConf::getSingleton();
|
||||
@@ -109,13 +109,15 @@ class pmLicenseManager
|
||||
$oServerConf->setProperty ( 'LICENSE_INFO', $licInfoA );
|
||||
}
|
||||
|
||||
$this->activateFeatures ();
|
||||
if ($flagActivatePlugins) {
|
||||
$this->activateFeatures();
|
||||
}
|
||||
}
|
||||
|
||||
public static function getSingleton()
|
||||
public static function getSingleton($flagActivatePlugins = true)
|
||||
{
|
||||
if (self::$instance == null) {
|
||||
self::$instance = new pmLicenseManager();
|
||||
self::$instance = new pmLicenseManager($flagActivatePlugins);
|
||||
}
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
@@ -159,7 +159,7 @@ class TaskMapBuilder
|
||||
|
||||
$tMap->addColumn('TAS_SELFSERVICE_EXECUTION', 'TasSelfserviceExecution', 'string', CreoleTypes::VARCHAR, false, 15);
|
||||
|
||||
$tMap->addValidator('TAS_TYPE', 'validValues', 'propel.validator.ValidValuesValidator', 'NORMAL|ADHOC|SUBPROCESS|HIDDEN', 'Please select a valid value for TAS_TYPE.');
|
||||
$tMap->addValidator('TAS_TYPE', 'validValues', 'propel.validator.ValidValuesValidator', 'NORMAL|ADHOC|SUBPROCESS|HIDDEN|GATEWAYTOGATEWAY', 'Please enter a valid value for TAS_TYPE');
|
||||
|
||||
$tMap->addValidator('TAS_TIMEUNIT', 'validValues', 'propel.validator.ValidValuesValidator', 'MINUTES|HOURS|DAYS|WEEKS|MONTHS', 'Please select a valid value for TAS_TIMEUNIT.');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user