Fix description not being populated in event form when there's a validation error

This commit is contained in:
Hypolite Petovan 2022-12-02 19:36:57 -05:00
parent 04450bbbd4
commit 1b71b963d7

View file

@ -170,12 +170,12 @@ class API extends BaseModule
$type = 'event';
$params = [
'summary' => $summary,
'description' => $desc,
'location' => $location,
'start' => $strStartDateTime,
'finish' => $strFinishDateTime,
'nofinish' => $noFinish,
'summary' => $summary,
'desc' => $desc,
'location' => $location,
'start' => $strStartDateTime,
'finish' => $strFinishDateTime,
'nofinish' => $noFinish,
];
$action = empty($eventId) ? 'new' : 'edit/' . $eventId;