Skip to content
Snippets Groups Projects
Commit 0a2d890e authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by Elmar Ludwig
Browse files

only define variable if it is not defined yet, fixes #2405

Closes #2405

Merge request studip/studip!1775
parent 556bfa66
No related branches found
No related tags found
No related merge requests found
......@@ -198,8 +198,6 @@ class Resources_RoomController extends AuthenticatedController
$this->mode = $mode;
$this->show_form = false;
$this->parent_id = '';
$this->category_id = '';
$this->room = null;
$this->booking_plan_is_public = false;
$this->sort_position = '0';
......@@ -287,9 +285,7 @@ class Resources_RoomController extends AuthenticatedController
if ($mode == 'add' || $mode == 'edit') {
//Process submitted form:
$this->parent_id = Request::get('parent_id');
if ($mode == 'add') {
$this->category_id = Request::get('category_id');
}
$this->category_id = Request::get('category_id');
$this->name = Request::get('name');
$this->description = Request::get('description');
$this->requestable = Request::int('requestable');
......
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