mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 08:12:17 +01:00
Fixed setting multiple time entry description to an empty string
This commit is contained in:
@@ -333,6 +333,10 @@ class TimeEntryController extends Controller
|
||||
|
||||
$changes = $request->validated('changes');
|
||||
|
||||
if ($request->has('changes.description')) {
|
||||
$changes['description'] = $request->input('changes.description') ?? '';
|
||||
}
|
||||
|
||||
if (isset($changes['member_id']) && ! $canAccessAll && $this->member($organization)->getKey() !== $changes['member_id']) {
|
||||
throw new AuthorizationException;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user