Merged in mcuiza/processmaker/MT-115 (pull request #4073)

MT-115
This commit is contained in:
Gustavo Cruz
2016-04-08 15:58:35 -04:00
3 changed files with 13 additions and 3 deletions

View File

@@ -104,5 +104,14 @@ if(sizeof($callBackFile)) {
} }
$oHeadPublisher->assign("importProcessCallbackFile", $file); $oHeadPublisher->assign("importProcessCallbackFile", $file);
$isGranularFeature = false;
/*----------------------------------********---------------------------------*/
$licensedFeatures = & PMLicensedFeatures::getSingleton();
if ($licensedFeatures->verifyfeature('jXsSi94bkRUcVZyRStNVExlTXhEclVadGRRcG9xbjNvTWVFQUF3cklKQVBiVT0=')) {
$isGranularFeature = true;
}
/*----------------------------------********---------------------------------*/
$oHeadPublisher->assign("isGranularFeature", $isGranularFeature);
G::RenderPage( 'publish', 'extJs' ); G::RenderPage( 'publish', 'extJs' );

View File

@@ -66,7 +66,8 @@ class System extends Api
$enabledFeatures = array(); $enabledFeatures = array();
/*----------------------------------********---------------------------------*/ /*----------------------------------********---------------------------------*/
$keys = array ('zLhSk5TeEQrNFI2RXFEVktyUGpnczV1WEJNWVp6cjYxbTU3R29mVXVZNWhZQT0=', $keys = array ('zLhSk5TeEQrNFI2RXFEVktyUGpnczV1WEJNWVp6cjYxbTU3R29mVXVZNWhZQT0=',
'oq3S29xemxEZXJpZEIzN01qenJUaStSekY4cTdJVm5vbWtVM0d4S2lJSS9qUT0='); 'oq3S29xemxEZXJpZEIzN01qenJUaStSekY4cTdJVm5vbWtVM0d4S2lJSS9qUT0=',
'jXsSi94bkRUcVZyRStNVExlTXhEclVadGRRcG9xbjNvTWVFQUF3cklKQVBiVT0=');
foreach ($keys as $key) { foreach ($keys as $key) {
if (\PMLicensedFeatures if (\PMLicensedFeatures
::getSingleton() ::getSingleton()

View File

@@ -251,7 +251,7 @@ Ext.onReady(function(){
//Code export - exportGranular (handle) //Code export - exportGranular (handle)
var exportProcessOption; var exportProcessOption;
/*----------------------------------********---------------------------------*/ /*----------------------------------********---------------------------------*/
if (true) { if (isGranularFeature) {
exportProcessOption = { exportProcessOption = {
xtype: "tbsplit", xtype: "tbsplit",
id: "export", id: "export",
@@ -532,7 +532,7 @@ Ext.onReady(function(){
//code export - exportGranular (handler) //code export - exportGranular (handler)
var menuExportOption; var menuExportOption;
/*----------------------------------********---------------------------------*/ /*----------------------------------********---------------------------------*/
if (true) { if (isGranularFeature) {
menuExportOption = { menuExportOption = {
text: _("ID_EXPORT"), text: _("ID_EXPORT"),
icon: "/images/export.png", icon: "/images/export.png",