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'; $type = 'event';
$params = [ $params = [
'summary' => $summary, 'summary' => $summary,
'description' => $desc, 'desc' => $desc,
'location' => $location, 'location' => $location,
'start' => $strStartDateTime, 'start' => $strStartDateTime,
'finish' => $strFinishDateTime, 'finish' => $strFinishDateTime,
'nofinish' => $noFinish, 'nofinish' => $noFinish,
]; ];
$action = empty($eventId) ? 'new' : 'edit/' . $eventId; $action = empty($eventId) ? 'new' : 'edit/' . $eventId;