prepare release 1.15 (#2707)

* bump version
* fix invisible class on labels
* fail safe removal of foreign key
* check if optional form field exists before accessing it
* silently ignore stopped timesheets
* prevent colliding parameter names
* make sure decimal duration is always rendered with two decimals
* simplify translation
* fix #2751 ANSI_QUOTES
* rename composer task
* fix billable statistic rates
* added missing translation for export
This commit is contained in:
Kevin Papst
2021-09-17 00:58:25 +02:00
committed by GitHub
parent 8f832856a5
commit baff2d78d9
23 changed files with 142 additions and 117 deletions

View File

@@ -226,7 +226,11 @@ final class TimesheetService
public function stopTimesheet(Timesheet $timesheet): void
{
if (null !== $timesheet->getEnd()) {
throw new ValidationException('Timesheet entry already stopped');
// timesheet already stopped, nothing to do. in previous version, this method did throw a:
// new ValidationException('Timesheet entry already stopped');
// but this was removed, because it can happen in the frontend when using multiple tabs/devices and should
// simply be ignored - showing the message to the user with a "danger status" is not necessary
return;
}
$begin = clone $timesheet->getBegin();