Allow removing the enddate.

Fixes #13
This commit is contained in:
Tim Schumacher 2014-08-31 13:55:24 +02:00
parent ec89bd77fe
commit 0d9b4cce8e

View file

@ -204,6 +204,8 @@ class EventController extends Controller
if (strlen($enddate) > 0) {
$enddate = new \DateTime($enddate);
$entity->enddate = $enddate;
} else {
$entity->enddate = null;
}
$location = $request->get('location');