fix locale date format in report header and more (#2520)
* fix problem with empty end datetime in edit time * fixed calendar creation with tags in "pre-defined tags" mode * fix locale date format in report header
This commit is contained in:
@@ -32,11 +32,16 @@ final class TimesheetEntry implements DragAndDropEntry
|
||||
|
||||
public function getData(): array
|
||||
{
|
||||
$tags = null;
|
||||
if (!empty($this->timesheet->getTagsAsArray())) {
|
||||
$tags = implode(',', $this->timesheet->getTagsAsArray());
|
||||
}
|
||||
|
||||
return [
|
||||
'description' => $this->timesheet->getDescription(),
|
||||
'activity' => $this->timesheet->getActivity() !== null ? $this->timesheet->getActivity()->getId() : null,
|
||||
'project' => $this->timesheet->getProject() !== null ? $this->timesheet->getProject()->getId() : null,
|
||||
'tags' => implode(',', $this->timesheet->getTagsAsArray()),
|
||||
'tags' => $tags,
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user