BUG-12021 Corrections Audit Log

Authentication Source Name
This commit is contained in:
norahmollo
2014-10-08 15:23:38 -04:00
parent 0fae3652d3
commit 7df77949fd
3 changed files with 7 additions and 5 deletions

View File

@@ -69,7 +69,7 @@ class AuthenticationSource extends BaseAuthenticationSource {
$oConnection->begin(); $oConnection->begin();
$iResult = $oAuthenticationSource->save(); $iResult = $oAuthenticationSource->save();
$oConnection->commit(); $oConnection->commit();
G::auditLog("createAuthSource", $aData['AUTH_SOURCE_NAME']); G::auditLog("CreateAuthSource", $aData['AUTH_SOURCE_NAME']);
return $aData['AUTH_SOURCE_UID']; return $aData['AUTH_SOURCE_UID'];
} }
else { else {
@@ -128,12 +128,14 @@ class AuthenticationSource extends BaseAuthenticationSource {
$oConnection = Propel::getConnection(AuthenticationSourcePeer::DATABASE_NAME); $oConnection = Propel::getConnection(AuthenticationSourcePeer::DATABASE_NAME);
try { try {
$oAuthenticationSource = AuthenticationSourcePeer::retrieveByPK($sUID); $oAuthenticationSource = AuthenticationSourcePeer::retrieveByPK($sUID);
$nameAuthenticationSource = $this->load($sUID); $authenticationSource = $this->load($sUID);
if (!is_null($oAuthenticationSource)) { if (!is_null($oAuthenticationSource)) {
$oConnection->begin(); $oConnection->begin();
$iResult = $oAuthenticationSource->delete(); $iResult = $oAuthenticationSource->delete();
$oConnection->commit(); $oConnection->commit();
G::auditLog("DeleteAuthSource", $nameAuthenticationSource." (".$sUID.") ");
G::auditLog("DeleteAuthSource", $authenticationSource['AUTH_SOURCE_NAME']." (".$sUID.") ");
return $iResult; return $iResult;
} }
else { else {

View File

@@ -260,7 +260,7 @@ switch ($request) {
$result = new StdClass(); $result = new StdClass();
$result->success = true; $result->success = true;
$result->msg = G::LoadTranslation('ID_TITLE_COMPLETED'); $result->msg = G::LoadTranslation('ID_TITLE_COMPLETED');
g::auditLog("BuildCache"); G::auditLog("BuildCache");
echo G::json_encode( $result ); echo G::json_encode( $result );
} catch (Exception $e) { } catch (Exception $e) {

View File

@@ -231,7 +231,7 @@ try {
$userInstance->update($userData); $userInstance->update($userData);
$msg = $_REQUEST['NEW_USR_STATUS'] == 'ACTIVE'? "Enable User" : "Disable User"; $msg = $_REQUEST['NEW_USR_STATUS'] == 'ACTIVE'? "Enable User" : "Disable User";
g::auditLog($msg, $userData['USR_USERNAME']." (".$userData['USR_UID'].") "); G::auditLog($msg, $userData['USR_USERNAME']." (".$userData['USR_UID'].") ");
$response->status = 'OK'; $response->status = 'OK';
} else { } else {
$response->status = 'ERROR'; $response->status = 'ERROR';