diff options
author | msquare <msquare@notrademark.de> | 2016-12-27 23:07:44 +0100 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2016-12-27 23:07:44 +0100 |
commit | 860252bce80f1e0b030b951c51a56f33a5a6b6b3 (patch) | |
tree | 31ff085d77030181ecc6d13b30ed7cb262fbbd35 /includes | |
parent | 46528fe1d888ae09d125c2ae8ac1952f1d7f29f6 (diff) |
select only one room per default
Diffstat (limited to 'includes')
-rw-r--r-- | includes/pages/user_shifts.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/pages/user_shifts.php b/includes/pages/user_shifts.php index 6b942804..3c37a63a 100644 --- a/includes/pages/user_shifts.php +++ b/includes/pages/user_shifts.php @@ -124,7 +124,7 @@ function view_user_shifts() { if (! isset($_SESSION['ShiftsFilter'])) { $room_ids = array_map('get_ids_from_array', $rooms); $type_ids = array_map('get_ids_from_array', $types); - $_SESSION['ShiftsFilter'] = new ShiftsFilter(in_array('user_shifts_admin', $privileges), $room_ids, $type_ids); + $_SESSION['ShiftsFilter'] = new ShiftsFilter(in_array('user_shifts_admin', $privileges), [$rooms[0]['id']], $type_ids); } update_ShiftsFilter($_SESSION['ShiftsFilter'], in_array('user_shifts_admin', $privileges), $days); $shiftsFilter = $_SESSION['ShiftsFilter']; |