Skip to content

Timing missing date data key #6

Description

@xlefebure-pro

Hi,

I have an error if I add several dates for the same event in timing.

ErrorException {#3063 ▼
#message: "Warning: Undefined array key "date""
#code: 0
#file: "...../vendor/openagenda/api-sdk/src/Entity/Event.php"
#line: 232
#severity: E_WARNING
trace: {▶}
}

I found a solution, in Event.php line 224, we can add:

        $timing = [
            'date' => isset($datas['date']) ? $datas['date'] : '',
            'begin' => $datas['begin']->format('c'),
            'end' => $datas['end']->format('c'),
        ];

Could you fix this error ?

Thanks,
Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions