BUG-11275 Error en la creacion de Case Scheduler SOLVED
- no validation. - was add validation for name case scheduler.
This commit is contained in:
@@ -127,7 +127,7 @@ try {
|
|||||||
|
|
||||||
$aFields['SCH_LIST'] = '';
|
$aFields['SCH_LIST'] = '';
|
||||||
foreach ($_SESSION['_DBArray']['cases_scheduler'] as $key => $item) {
|
foreach ($_SESSION['_DBArray']['cases_scheduler'] as $key => $item) {
|
||||||
$aFields['SCH_LIST'] .= ($item['SCH_UID'] != $_GET['SCH_UID']) ? $item['SCH_NAME'] . '|' : '' ;
|
$aFields['SCH_LIST'] .= ($item['SCH_UID'] != $_GET['SCH_UID']) ? $item['SCH_NAME'] . '^' : '' ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ try {
|
|||||||
|
|
||||||
$aFields['SCH_LIST'] = '';
|
$aFields['SCH_LIST'] = '';
|
||||||
foreach ($_SESSION['_DBArray']['cases_scheduler'] as $key => $item) {
|
foreach ($_SESSION['_DBArray']['cases_scheduler'] as $key => $item) {
|
||||||
$aFields['SCH_LIST'] .= $item['SCH_NAME'] . '|';
|
$aFields['SCH_LIST'] .= $item['SCH_NAME'] . '^';
|
||||||
}
|
}
|
||||||
|
|
||||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'cases/cases_Scheduler_New.xml', '', $aFields, 'cases_Scheduler_Save' );
|
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'cases/cases_Scheduler_New.xml', '', $aFields, 'cases_Scheduler_Save' );
|
||||||
|
|||||||
@@ -771,7 +771,7 @@ function validateSchedulerFields(oForm) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var listNames = document.getElementById('form[SCH_LIST]').value;
|
var listNames = document.getElementById('form[SCH_LIST]').value;
|
||||||
listNames = listNames.split("|");
|
listNames = listNames.split("^");
|
||||||
for (var i= 1; i<listNames.length; i++) {
|
for (var i= 1; i<listNames.length; i++) {
|
||||||
if (schedulerTitle == listNames[i]) {
|
if (schedulerTitle == listNames[i]) {
|
||||||
document.getElementById('form[SCH_NAME]').focus();
|
document.getElementById('form[SCH_NAME]').focus();
|
||||||
|
|||||||
@@ -633,7 +633,7 @@ function validateSchedulerFields(oForm) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var listNames = document.getElementById('form[SCH_LIST]').value;
|
var listNames = document.getElementById('form[SCH_LIST]').value;
|
||||||
listNames = listNames.split("|");
|
listNames = listNames.split("^");
|
||||||
for (var i= 1; i<listNames.length; i++) {
|
for (var i= 1; i<listNames.length; i++) {
|
||||||
if (schedulerTitle == listNames[i]) {
|
if (schedulerTitle == listNames[i]) {
|
||||||
document.getElementById('form[SCH_NAME]').focus();
|
document.getElementById('form[SCH_NAME]').focus();
|
||||||
|
|||||||
Reference in New Issue
Block a user