Skip to content
Snippets Groups Projects
Verified Commit 1eeb984c authored by Till Glöggler's avatar Till Glöggler
Browse files

fixes #216

parent c4ec909e
No related branches found
No related tags found
No related merge requests found
...@@ -891,6 +891,8 @@ class Course_RoomRequestsController extends AuthenticatedController ...@@ -891,6 +891,8 @@ class Course_RoomRequestsController extends AuthenticatedController
} }
return; return;
} elseif (Request::submitted('save') || Request::submitted('save_and_close')) { } elseif (Request::submitted('save') || Request::submitted('save_and_close')) {
// if a closed request is stored again, reopen it
if ($this->seats < 1) { if ($this->seats < 1) {
PageLayout::postError( PageLayout::postError(
_('Es wurde keine Anzahl an Sitzplätzen angegeben!') _('Es wurde keine Anzahl an Sitzplätzen angegeben!')
...@@ -931,6 +933,11 @@ class Course_RoomRequestsController extends AuthenticatedController ...@@ -931,6 +933,11 @@ class Course_RoomRequestsController extends AuthenticatedController
$this->request->category_id = $this->category_id; $this->request->category_id = $this->category_id;
} }
if ($this->request->closed != 0) {
PageLayout::postInfo(_('Die Raumanfrage wurde wieder geöffnet und damit erneut gestellt.'));
$this->request->closed = 0;
}
$storing_successful = false; $storing_successful = false;
if ($this->request->isDirty()) { if ($this->request->isDirty()) {
$storing_successful = $this->request->store(); $storing_successful = $this->request->store();
......
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