ajout icone congés

This commit is contained in:
2020-07-28 17:21:43 +02:00
parent 8b46636159
commit aeeb6384c4
2 changed files with 9 additions and 5 deletions

View File

@@ -335,9 +335,6 @@ class EventController extends AbstractController
$datestart=$event->getStart();
$dateend =$event->getEnd();
$duration=$dateend->diff($datestart)->d;
dump($datestart);
dump($dateend);
dump($duration);
if($am&&$ap) {
if ($duration >= 1) {
$dateend->SetTime(0,0,-1);
@@ -484,6 +481,7 @@ class EventController extends AbstractController
"borderColor" => $event->getTask()->getColor(),
"textColor" => "#ffffff",
"allDay" => $event->getAllday(),
"holiday" => $event->getTask()->getNature()->getIsvacation(),
"externaltrip" => $event->getExternalTrip(),
"editable" => $editable,
"durationEditable" => false,
@@ -516,6 +514,7 @@ class EventController extends AbstractController
"textColor" => "#ffffff",
"allDay" => true,
"externaltrip" => false,
"holiday" => false,
"editable" => false,
"durationEditable" => false,
"extendedProps" => [