BUG-11275 Error en la creacion de Case Scheduler SOLVED

- no validation.
- was add validation for name case scheduler.
This commit is contained in:
Marco Antonio Nina
2013-05-28 16:27:46 -04:00
parent 6939b214ff
commit d750e635b1
4 changed files with 4 additions and 4 deletions

View File

@@ -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'] . '^' : '' ;
} }

View File

@@ -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' );

View File

@@ -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();

View File

@@ -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();