on-site color change
This commit is contained in:
@@ -392,7 +392,7 @@ try {
|
|||||||
# ---| ON-SITE SHIFT CHECK |---
|
# ---| ON-SITE SHIFT CHECK |---
|
||||||
if($email -in $os_emails) {
|
if($email -in $os_emails) {
|
||||||
if((Invoke-HasShiftorTimeOff -UID $userId -shifts $shifts_today -timeoff $timeoff_today -mail $email) -eq $false) {
|
if((Invoke-HasShiftorTimeOff -UID $userId -shifts $shifts_today -timeoff $timeoff_today -mail $email) -eq $false) {
|
||||||
$newshift = Set-Shift -userId $userId -groupID $group.id -shiftName "On-site" -StartDate $dateStart -EndDate $dateEnd -color "gray" -teamID $team.id -mail $email
|
$newshift = Set-Shift -userId $userId -groupID $group.id -shiftName "On-site" -StartDate $dateStart -EndDate $dateEnd -color "white" -teamID $team.id -mail $email
|
||||||
$allshifts += [Object[]] $newshift
|
$allshifts += [Object[]] $newshift
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user