This commit is contained in:
Mathieu Lagace
2019-08-21 10:52:16 -04:00
parent 1d3f07b7b7
commit 44efcd8e32
3 changed files with 6 additions and 6 deletions

View File

@@ -44,8 +44,8 @@ class EventController extends Controller
$event->type = request('type');
$event->user_id = \Auth::user()->id;
$event->location = request('location');
if($event->is_mandatory){
$event->is_mandatory = request('is_mandatory');
if(request('is_mandatory') != null){
$event->is_mandatory = 1;
} else {
$event->is_mandatory = 0;
}
@@ -124,8 +124,8 @@ class EventController extends Controller
$event->date_begin = request('begin');
$event->date_end = request('end');
$event->location = request('location');
if($event->is_mandatory){
$event->is_mandatory = request('is_mandatory');
if(request('is_mandatory') != null){
$event->is_mandatory = 1;
} else {
$event->is_mandatory = 0;
}