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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user