Skip to content
Snippets Groups Projects
Commit c64fdad3 authored by David Siegfried's avatar David Siegfried Committed by Jan-Hendrik Willms
Browse files

fixes #4004

Closes #4004

Merge request studip/studip!2855
parent e7d5f02a
No related branches found
No related tags found
No related merge requests found
...@@ -308,17 +308,6 @@ class Course_RoomRequestsController extends AuthenticatedController ...@@ -308,17 +308,6 @@ class Course_RoomRequestsController extends AuthenticatedController
} }
$_SESSION[$request_id]['selected_properties']['seats'] = $this->selected_properties['seats']; $_SESSION[$request_id]['selected_properties']['seats'] = $this->selected_properties['seats'];
$_SESSION[$request_id]['room_category_id'] = $this->selected_room_category_id; $_SESSION[$request_id]['room_category_id'] = $this->selected_room_category_id;
} else if ($_SESSION[$request_id]['search_by'] === 'category') {
$this->room = Room::find($_SESSION[$request_id]['room_id']);
if ($this->room) {
$this->grouped_properties = $this->room->getGroupedProperties();
$this->selected_properties = [];
foreach ($this->grouped_properties as $properties) {
foreach ($properties as $property) {
$this->selected_properties[$property->name] = $property->state;
}
}
}
} else { } else {
// let's find all the properties belonging to the selected category // let's find all the properties belonging to the selected category
$this->room_category_id = $_SESSION[$request_id]['room_category_id']; $this->room_category_id = $_SESSION[$request_id]['room_category_id'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment