summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/controller/users_controller.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/includes/controller/users_controller.php b/includes/controller/users_controller.php
index 393acca8..dea27645 100644
--- a/includes/controller/users_controller.php
+++ b/includes/controller/users_controller.php
@@ -492,6 +492,13 @@ function shiftCalendarRendererByShiftFilter(ShiftsFilter $shiftsFilter)
foreach ($needed_angeltypes[$shift['SID']] as $needed_angeltype) {
$taken = 0;
+ if (
+ !in_array(ShiftsFilter::FILLED_FILLED, $shiftsFilter->getFilled())
+ && !in_array($needed_angeltype['angel_type_id'], $shiftsFilter->getTypes())
+ ) {
+ continue;
+ }
+
foreach ($shift_entries[$shift['SID']] as $shift_entry) {
if (
$needed_angeltype['angel_type_id'] == $shift_entry['TID']