Merge remote-tracking branch 'origin/develop' into bugfix/HOR-3150
This commit is contained in:
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@@ -3,7 +3,7 @@ node {
|
|||||||
/**
|
/**
|
||||||
* Branch should be in gitflow format. If not, then we'll abort.
|
* Branch should be in gitflow format. If not, then we'll abort.
|
||||||
*/
|
*/
|
||||||
if(!env.BRANCH_NAME.matches(/(feature|hotfix|bugfix|release)\/.+/) && !env.BRANCH_NAME.matches(/^PR-.*$/)) {
|
if(!env.BRANCH_NAME.matches(/(feature|hotfix|bugfix|release|master|develop)\/.+/) && !env.BRANCH_NAME.matches(/^PR-.*$/)) {
|
||||||
hipchatSend message: "${env.BRANCH_NAME} Build: Does not match gitflow naming. Aborted", room: 'engineering'
|
hipchatSend message: "${env.BRANCH_NAME} Build: Does not match gitflow naming. Aborted", room: 'engineering'
|
||||||
error "Job does not follow gitflow naming format."
|
error "Job does not follow gitflow naming format."
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,26 +72,21 @@ function getProcessList ()
|
|||||||
}
|
}
|
||||||
|
|
||||||
$processListTree = array ();
|
$processListTree = array ();
|
||||||
if (1) {
|
|
||||||
foreach ($processList as $key => $processInfo) {
|
foreach ($processList as $key => $processInfo) {
|
||||||
$tempTree['text'] = $key;
|
$tempTree['text'] = $key;
|
||||||
$tempTree['id'] = G::encryptOld($key);
|
$tempTree['id'] = G::encryptOld($key);
|
||||||
$tempTree['cls'] = 'folder';
|
$tempTree['cls'] = 'folder';
|
||||||
$tempTree['draggable'] = true;
|
$tempTree['draggable'] = true;
|
||||||
$tempTree['optionType'] = "category";
|
$tempTree['optionType'] = "category";
|
||||||
//$tempTree['allowDrop']=false;
|
|
||||||
$tempTree['singleClickExpand'] = true;
|
$tempTree['singleClickExpand'] = true;
|
||||||
if ($key != "No Category") {
|
if ($key != "No Category") {
|
||||||
$tempTree['expanded'] = true;
|
$tempTree['expanded'] = true;
|
||||||
} else {
|
} else {
|
||||||
//$tempTree ['expanded'] = false;
|
|
||||||
$tempTree['expanded'] = true;
|
$tempTree['expanded'] = true;
|
||||||
}
|
}
|
||||||
$tempTreeChildren = array ();
|
$tempTreeChildren = array();
|
||||||
foreach ($processList[$key] as $keyChild => $processInfoChild) {
|
foreach ($processList[$key] as $keyChild => $processInfoChild) {
|
||||||
//print_r($processInfo);
|
$tempTreeChild['text'] = $keyChild;
|
||||||
$tempTreeChild['text'] = htmlentities($keyChild, ENT_QUOTES, 'UTF-8'); //ellipsis ( $keyChild, 50 );
|
|
||||||
//$tempTree['text']=$key;
|
|
||||||
$tempTreeChild['id'] = G::encryptOld($keyChild);
|
$tempTreeChild['id'] = G::encryptOld($keyChild);
|
||||||
$tempTreeChild['draggable'] = true;
|
$tempTreeChild['draggable'] = true;
|
||||||
$tempTreeChild['leaf'] = true;
|
$tempTreeChild['leaf'] = true;
|
||||||
@@ -102,41 +97,17 @@ function getProcessList ()
|
|||||||
$tempTreeChild['tas_uid'] = $processInfoChild['uid'];
|
$tempTreeChild['tas_uid'] = $processInfoChild['uid'];
|
||||||
$processInfoChild['myInbox'] = 0;
|
$processInfoChild['myInbox'] = 0;
|
||||||
$processInfoChild['totalInbox'] = 0;
|
$processInfoChild['totalInbox'] = 0;
|
||||||
if (isset( $proData[$processInfoChild['pro_uid']] )) {
|
if (isset($proData[$processInfoChild['pro_uid']])) {
|
||||||
$tempTreeChild['otherAttributes'] = array_merge( $processInfoChild, $proData[$processInfoChild['pro_uid']], $calendar->getCalendarFor( $_SESSION['USER_LOGGED'], $processInfoChild['pro_uid'], $processInfoChild['uid'] ) );
|
$tempTreeChild['otherAttributes'] = array_merge($processInfoChild, $proData[$processInfoChild['pro_uid']], $calendar->getCalendarFor($_SESSION['USER_LOGGED'], $processInfoChild['pro_uid'], $processInfoChild['uid']));
|
||||||
$tempTreeChild['otherAttributes']['PRO_TAS_TITLE'] = str_replace( ")", "", str_replace( "(", "", trim( str_replace( $tempTreeChild['otherAttributes']['PRO_TITLE'], "", $tempTreeChild['otherAttributes']["value"] ) ) ) );
|
$tempTreeChild['otherAttributes']['PRO_TAS_TITLE'] = str_replace(")", "", str_replace("(", "", trim(str_replace($tempTreeChild['otherAttributes']['PRO_TITLE'], "", $tempTreeChild['otherAttributes']["value"]))));
|
||||||
$tempTreeChild['qtip'] = $tempTreeChild['otherAttributes']['PRO_DESCRIPTION'];
|
$tempTreeChild['qtip'] = $tempTreeChild['otherAttributes']['PRO_DESCRIPTION'];
|
||||||
//$tempTree['cls']='file';
|
|
||||||
$tempTreeChildren[] = $tempTreeChild;
|
$tempTreeChildren[] = $tempTreeChild;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$tempTree['children'] = $tempTreeChildren;
|
$tempTree['children'] = $tempTreeChildren;
|
||||||
|
$processListTree[] = $tempTree;
|
||||||
|
}
|
||||||
|
|
||||||
$processListTree[] = $tempTree;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
foreach ($processList[$node] as $key => $processInfo) {
|
|
||||||
//print_r($processInfo);
|
|
||||||
$tempTree['text'] = $key; //ellipsis ( $key, 50 );
|
|
||||||
//$tempTree['text']=$key;
|
|
||||||
$tempTree['id'] = $key;
|
|
||||||
$tempTree['draggable'] = true;
|
|
||||||
$tempTree['leaf'] = true;
|
|
||||||
$tempTree['icon'] = '/images/icon.trigger.png';
|
|
||||||
$tempTree['allowChildren'] = false;
|
|
||||||
$tempTree['optionType'] = "startProcess";
|
|
||||||
$tempTree['pro_uid'] = $processInfo['pro_uid'];
|
|
||||||
$tempTree['tas_uid'] = $processInfo['uid'];
|
|
||||||
$processInfo['myInbox'] = 0;
|
|
||||||
$processInfo['totalInbox'] = 0;
|
|
||||||
$tempTree['otherAttributes'] = array_merge( $processInfo, $proData[$processInfo['pro_uid']], $calendar->getCalendarFor( $processInfo['uid'], $processInfo['uid'], $processInfo['uid'] ) );
|
|
||||||
$tempTree['otherAttributes']['PRO_TAS_TITLE'] = str_replace( ")", "", str_replace( "(", "", trim( str_replace( $tempTree['otherAttributes']['PRO_TITLE'], "", $tempTree['otherAttributes']["value"] ) ) ) );
|
|
||||||
$tempTree['qtip'] = $tempTree['otherAttributes']['PRO_DESCRIPTION'];
|
|
||||||
//$tempTree['cls']='file';
|
|
||||||
$processListTree[] = $tempTree;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$processList = $processListTree;
|
$processList = $processListTree;
|
||||||
} else {
|
} else {
|
||||||
$processList['success'] = 'failure';
|
$processList['success'] = 'failure';
|
||||||
|
|||||||
@@ -820,7 +820,6 @@ function newProcess(params)
|
|||||||
xtype:'textfield',
|
xtype:'textfield',
|
||||||
width: 260,
|
width: 260,
|
||||||
maxLength: 100,
|
maxLength: 100,
|
||||||
maskRe: /^(?!^(PRN|AUX|CLOCK\$|NUL|CON|COM\d|LPT\d|\...*)(\..+)?$)[^\x00-\x1f\\?*\";|/]+$/i,
|
|
||||||
allowBlank: false,
|
allowBlank: false,
|
||||||
vtype: "textWithoutTags",
|
vtype: "textWithoutTags",
|
||||||
autoCreate: {tag: 'input', type: 'text', size: '100', autocomplete: 'off', maxlength: '100'},
|
autoCreate: {tag: 'input', type: 'text', size: '100', autocomplete: 'off', maxlength: '100'},
|
||||||
@@ -837,16 +836,7 @@ function newProcess(params)
|
|||||||
xtype:'textarea',
|
xtype:'textarea',
|
||||||
width: 260
|
width: 260
|
||||||
},
|
},
|
||||||
ProcessCategories/*,
|
ProcessCategories
|
||||||
{
|
|
||||||
id: 'editor',
|
|
||||||
xtype: 'radiogroup',
|
|
||||||
fieldLabel: _('ID_OPEN_WITH'),
|
|
||||||
items: [
|
|
||||||
{boxLabel: _('ID_CLASSIC_EDITOR'), name: 'editor', inputValue: 'classic', checked: true},
|
|
||||||
{boxLabel: _('ID_BPMN_EDITOR'), name: 'editor', inputValue: 'bpmn'}
|
|
||||||
]
|
|
||||||
}*/
|
|
||||||
],
|
],
|
||||||
buttons : [{
|
buttons : [{
|
||||||
text : _('ID_CREATE'),
|
text : _('ID_CREATE'),
|
||||||
|
|||||||
Reference in New Issue
Block a user