BUG 7167 Validation in the name of the process to create and modify processes.
This commit is contained in:
@@ -430,6 +430,7 @@ function newProcess(){
|
||||
fieldLabel: _('ID_TITLE'),
|
||||
xtype:'textfield',
|
||||
width: 260,
|
||||
maskRe: /^(?!^(PRN|AUX|CLOCK\$|NUL|CON|COM\d|LPT\d|\..*)(\..+)?$)[^\x00-\x1f\\?*:\";|/]+$/i,
|
||||
allowBlank: false
|
||||
}, {
|
||||
id: 'PRO_DESCRIPTION',
|
||||
|
||||
@@ -63,6 +63,14 @@ var verifyProcessInformation = function(oForm) {
|
||||
oAux.focus();
|
||||
bContinue = false;
|
||||
}
|
||||
|
||||
var regExp = /^(?!^(PRN|AUX|CLOCK\$|NUL|CON|COM\d|LPT\d|\..*)(\..+)?$)[^\x00-\x1f\\?*:\";|/]+$/;
|
||||
if (oAux.value.search(regExp)==-1) {
|
||||
alert('@G::LoadTranslation(ID_INVALID_PROCESS_NAME)');
|
||||
oAux.focus();
|
||||
bContinue = false;
|
||||
}
|
||||
|
||||
if (bContinue) {
|
||||
ajax_post(oForm.action, oForm, 'POST');
|
||||
Pm.data.db.title.label = Pm.data.db.title.object.elements.label.innerHTML = getField('PRO_TITLE').value.escapeHTML();
|
||||
|
||||
Reference in New Issue
Block a user