BUG 5735 This issue has been fixed

I've tried to reproduced this issue but I couldn't. However I could see that was not doing the validation for the users and this had a notice, these were in the case scheduler option. These were fixed.
This commit is contained in:
Carlos Pacha
2011-04-12 11:20:30 -04:00
parent c3a6b54c19
commit 092c7e3a39
2 changed files with 10 additions and 3 deletions

View File

@@ -529,7 +529,7 @@ class CaseScheduler extends BaseCaseScheduler {
}
} else if ($sActualDataHour == $dActualSysHour && $sActualDataMinutes <= $dActualSysMinutes) {
$_PORT = ($_SERVER ['SERVER_PORT'] != '80') ? ':' . $_SERVER ['SERVER_PORT'] : '';
$_PORT = (isset($_SERVER ['SERVER_PORT']) && $_SERVER ['SERVER_PORT'] != '80') ? ':' . $_SERVER ['SERVER_PORT'] : '';
//$defaultEndpoint = 'http://' . $_SERVER ['SERVER_NAME'] . ':' . $_PORT . '/sys' . SYS_SYS . '/en/green/services/wsdl2';
$defaultEndpoint = 'http://' . SERVER_NAME . $_PORT . '/sys' . SYS_SYS . '/en/green/services/wsdl2';

View File

@@ -509,10 +509,17 @@ function case_userSchedulerValidate(username, password) {
oRPC.callback = function(rpc){
//msgBox(rpc.xmlhttp.responseText,"alert");
sresponse = rpc.xmlhttp.responseText;
if(sresponse == "User does not have access to the system"){
switch(sresponse){
case "User does not have access to the system":
case "Wrong password":
case "User inactive!":
msgBox(rpc.xmlhttp.responseText,"alert");
getField('BTNCANCEL').focus();
return false;
}
break
}
getField('SCH_USER_UID').value = rpc.xmlhttp.responseText;
user_uid = rpc.xmlhttp.responseText;
//alert(user_uid);