BUG-12021 AuditLog correction

AuditLog correction
This commit is contained in:
norahmollo
2014-10-13 17:12:58 -04:00
parent db9c943ada
commit 6dc32d8990

View File

@@ -369,8 +369,10 @@ class Department extends BaseDepartment
if ($managerId) {
$user = $oUser->loadDetailed ($managerId);
$dptoTitle = $oDept->Load($depId);
G::auditLog("AssignManagerToDepartament", "Assign Manager ".$user['USR_USERNAME']." (".$managerId.") to ".$dptoTitle['DEPO_TITLE']." (".$depId.") ");
if (is_object( $oDept ) && get_class( $oDept ) == 'Department') {
$dptoTitle = $oDept->Load($depId);
G::auditLog("AssignManagerToDepartament", "Assign Manager ".$user['USR_USERNAME']." (".$managerId.") to ".$dptoTitle['DEPO_TITLE']." (".$depId.") ");
}
}
// get children departments to update the reportsTo of these children
$childrenCriteria = new Criteria( 'workflow' );