Skip to content
Snippets Groups Projects
Commit e7e49f6c authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

hide geo coordiantes when room has no building, fixes #945

Closes #945
parent 18b8ec72
No related branches found
No related tags found
No related merge requests found
...@@ -164,7 +164,12 @@ class Resources_RoomController extends AuthenticatedController ...@@ -164,7 +164,12 @@ class Resources_RoomController extends AuthenticatedController
$this->grouped_properties = $this->room->getGroupedProperties( $this->grouped_properties = $this->room->getGroupedProperties(
$this->room->getRequiredPropertyNames() $this->room->getRequiredPropertyNames()
); );
$this->geo_coordinates_object = $this->room->building->getPropertyObject('geo_coordinates');
if ($this->room->building) {
$this->geo_coordinates_object = $this->room->building->getPropertyObject('geo_coordinates');
} else {
$this->geo_coordinates_object = null;
}
} }
......
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