mirror of
https://github.com/koel/koel.git
synced 2026-04-25 16:56:02 +03:00
[PR #2118] [MERGED] fix: allow empty playlist description #2082
Labels
No labels
Authentication
Dependencies
Documentation
Feature Request
Flac
Help Wanted
Installation/Setup
Integration
Mobile
PR Welcome
Pending Release
Performance
Playlist
S3
Search
Sync
[Pri] Low
[Pri] Normal
[Status] Keep Open
[Status] Needs Author Reply
[Status] Needs Review
[Status] Stale
[Status] Will Implement
[Type] Blessed
[Type] Bug
[Type] Duplicate
[Type] Enhancement
[Type] Help Request
[Type] Question
[Type] Task
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/koel-koel#2082
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/koel/koel/pull/2118
Author: @Doppelkeks12
Created: 10/6/2025
Status: ✅ Merged
Merged: 10/6/2025
Merged by: @phanan
Base:
master← Head:fix/emtpy-playlist-description📝 Commits (1)
ef66f13fix: allow empty playlist description📊 Changes
3 files changed (+36 additions, -2 deletions)
View changed files
📝
app/Http/Requests/API/Playlist/PlaylistStoreRequest.php(+1 -1)📝
app/Http/Requests/API/Playlist/PlaylistUpdateRequest.php(+1 -1)📝
tests/Feature/PlaylistTest.php(+34 -0)📄 Description
When creating or updating a playlist without a description, I always got the error message: "The description must be a string."
In the network request, I can see that an empty string is sent to the backend.
I'm not a Laravel developer, but I think the ConvertEmptyStringsToNull middleware changes this before validation.
So I could write my own middleware for this, but I chose the simpler way and made the field nullable.
Later on, it will be cast to a string.
So maybe it's more the Laravel way to write a middleware.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.