diff --git a/app/Http/Requests/V1/TimeEntry/TimeEntryIndexRequest.php b/app/Http/Requests/V1/TimeEntry/TimeEntryIndexRequest.php index de310a2d..09cf44c1 100644 --- a/app/Http/Requests/V1/TimeEntry/TimeEntryIndexRequest.php +++ b/app/Http/Requests/V1/TimeEntry/TimeEntryIndexRequest.php @@ -51,7 +51,7 @@ public function rules(): array 'string', 'in:true,false', ], - // Limit the number of returned time entries + // Limit the number of returned time entries (default: 150) 'limit' => [ 'integer', 'min:1', @@ -59,7 +59,8 @@ public function rules(): array ], // Filter makes sure that only time entries of a whole date are returned 'only_full_dates' => [ - 'boolean', + 'string', + 'in:true,false', ], ]; } diff --git a/resources/js/Pages/Time.vue b/resources/js/Pages/Time.vue index 7631d37a..1b2a792e 100644 --- a/resources/js/Pages/Time.vue +++ b/resources/js/Pages/Time.vue @@ -1,7 +1,7 @@