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:
@@ -234,7 +234,9 @@ class TimesheetFixtures extends Fixture implements DependentFixtureInterface
|
||||
->setDuration($duration);
|
||||
} else {
|
||||
// running entries should be short
|
||||
$entry->getBegin()->setTimestamp(time())->modify('- ' . rand(10, self::TIMERANGE_RUNNING) . ' minutes');
|
||||
$newBegin = clone $entry->getBegin();
|
||||
$newBegin->setTimestamp(time())->modify('- ' . rand(10, self::TIMERANGE_RUNNING) . ' minutes');
|
||||
$entry->setBegin($newBegin);
|
||||
}
|
||||
|
||||
return $entry;
|
||||
|
||||
Reference in New Issue
Block a user