code improvements (#1423)

* removed unused mapping information
* added support for further field types
* fixed changing date objects for begin and end
* added more project fields as invoice variables
* theme update and asset rebuild
This commit is contained in:
Kevin Papst
2020-01-31 17:07:14 +01:00
committed by GitHub
parent 9e2fccb105
commit 3ff46e06c0
53 changed files with 1964 additions and 1634 deletions

View File

@@ -50,7 +50,9 @@ final class DurationOnlyMode extends AbstractTrackingMode
$timesheet->setBegin($this->dateTime->createDateTime());
}
$timesheet->getBegin()->modify($this->configuration->getDefaultBeginTime());
$newBegin = clone $timesheet->getBegin();
$newBegin->modify($this->configuration->getDefaultBeginTime());
$timesheet->setBegin($newBegin);
parent::create($timesheet, $request);
}