fix activity import Kimai v1 (#1001)
This commit is contained in:
@@ -830,9 +830,9 @@ class KimaiImporterCommand extends Command
|
|||||||
$activity = new Activity();
|
$activity = new Activity();
|
||||||
$activity
|
$activity
|
||||||
->setName($name)
|
->setName($name)
|
||||||
->setComment($oldActivity['comment'] ?: null)
|
->setComment($oldActivity['comment'] ?? null)
|
||||||
->setVisible($isActive)
|
->setVisible($isActive)
|
||||||
->setBudget($oldActivity['budget'] ?: 0)
|
->setBudget($oldActivity['budget'] ?? 0)
|
||||||
;
|
;
|
||||||
|
|
||||||
if (null !== $projectId) {
|
if (null !== $projectId) {
|
||||||
@@ -1059,7 +1059,7 @@ class KimaiImporterCommand extends Command
|
|||||||
// ---------------------------------------------------------------------
|
// ---------------------------------------------------------------------
|
||||||
|
|
||||||
$timesheet
|
$timesheet
|
||||||
->setDescription($oldRecord['description'] ?: ($oldRecord['comment'] ?: null))
|
->setDescription($oldRecord['description'] ?? ($oldRecord['comment'] ?? null))
|
||||||
->setUser($this->users[$oldRecord['userID']])
|
->setUser($this->users[$oldRecord['userID']])
|
||||||
->setBegin($begin)
|
->setBegin($begin)
|
||||||
->setEnd($end)
|
->setEnd($end)
|
||||||
|
|||||||
Reference in New Issue
Block a user