BUG-12021 Corrections Audit Log
Authentication Source Name
This commit is contained in:
@@ -69,7 +69,7 @@ class AuthenticationSource extends BaseAuthenticationSource {
|
||||
$oConnection->begin();
|
||||
$iResult = $oAuthenticationSource->save();
|
||||
$oConnection->commit();
|
||||
G::auditLog("createAuthSource", $aData['AUTH_SOURCE_NAME']);
|
||||
G::auditLog("CreateAuthSource", $aData['AUTH_SOURCE_NAME']);
|
||||
return $aData['AUTH_SOURCE_UID'];
|
||||
}
|
||||
else {
|
||||
@@ -128,12 +128,14 @@ class AuthenticationSource extends BaseAuthenticationSource {
|
||||
$oConnection = Propel::getConnection(AuthenticationSourcePeer::DATABASE_NAME);
|
||||
try {
|
||||
$oAuthenticationSource = AuthenticationSourcePeer::retrieveByPK($sUID);
|
||||
$nameAuthenticationSource = $this->load($sUID);
|
||||
$authenticationSource = $this->load($sUID);
|
||||
|
||||
if (!is_null($oAuthenticationSource)) {
|
||||
$oConnection->begin();
|
||||
$iResult = $oAuthenticationSource->delete();
|
||||
$oConnection->commit();
|
||||
G::auditLog("DeleteAuthSource", $nameAuthenticationSource." (".$sUID.") ");
|
||||
|
||||
G::auditLog("DeleteAuthSource", $authenticationSource['AUTH_SOURCE_NAME']." (".$sUID.") ");
|
||||
return $iResult;
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user