fixed calendar for empty timesheet descriptions (#265)

This commit is contained in:
Kevin Papst
2018-08-10 08:19:30 +02:00
committed by GitHub
parent c6e99b35d5
commit fb2d898e4c
3 changed files with 18 additions and 4 deletions

View File

@@ -97,10 +97,16 @@ class TimesheetFixtures extends Fixture
$user = $this->user;
for ($i = 0; $i < $this->amount; $i++) {
$description = null;
if ($i % 3 == 0) {
$description = $faker->text;
} elseif ($i % 2 == 0) {
$description = '';
}
$entry = $this->createTimesheetEntry(
$user,
$activities[array_rand($activities)],
($i % 3 == 0 ? $faker->text : ''),
$description,
$this->getDateTime($i)
);