BUG 7338 User profile "Replaced by" doesn't work when PM derivate a case. SLOVED

- The user A will be on vacation, then I update A's profile and set "Replaced by" to user B, set "Status" as Inactive or On vacation.
- Adjustment to the user to derivate.
This commit is contained in:
Hector Cortez
2012-10-10 17:13:17 -04:00
parent fc1fd9bf3d
commit 5ff3c0002e
3 changed files with 18 additions and 2 deletions

View File

@@ -398,6 +398,20 @@ public function userExists($UsrUid)
return $result;
}
public function userVacation($UsrUid = "")
{
$aFields = array();
do {
if ($UsrUid != ""){
$aFields = $this->load($UsrUid);
$UsrUid = $aFields['USR_REPLACED_BY'];
} else {
break;
}
} while ($aFields['USR_STATUS'] != 'ACTIVE');
return $aFields;
}
} // Users
?>