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:
@@ -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
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user