diff --git a/app/controllers/course/room_requests.php b/app/controllers/course/room_requests.php index cd82c2d78c51435636cd452f5e008065b2b12cd1..08daf9895cc3b0453c762adaba096dfb913cb7df 100644 --- a/app/controllers/course/room_requests.php +++ b/app/controllers/course/room_requests.php @@ -891,6 +891,8 @@ class Course_RoomRequestsController extends AuthenticatedController } return; } elseif (Request::submitted('save') || Request::submitted('save_and_close')) { + // if a closed request is stored again, reopen it + if ($this->seats < 1) { PageLayout::postError( _('Es wurde keine Anzahl an Sitzplätzen angegeben!') @@ -931,6 +933,11 @@ class Course_RoomRequestsController extends AuthenticatedController $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; if ($this->request->isDirty()) { $storing_successful = $this->request->store();