Fixed setting multiple time entry description to an empty string

This commit is contained in:
Constantin Graf
2024-10-22 16:45:21 +02:00
parent 548307336a
commit 401cd4be0a
2 changed files with 49 additions and 0 deletions

View File

@@ -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;
}