mirror of
https://github.com/koel/koel.git
synced 2026-04-26 17:25:59 +03:00
[PR #1842] [MERGED] fix(editing songs): track number removed when editing multiple songs #1900
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#1900
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/1842
Author: @ShetlandJ
Created: 10/7/2024
Status: ✅ Merged
Merged: 11/3/2024
Merged by: @phanan
Base:
master← Head:1740-editing-songs-bug📝 Commits (4)
85cf9affix(editing songs): fix track number removal when editing multiple songs46e5550fix(editing songs): add some more tests607a7ccfix(editing songs): revert some issues3cfd548fix(tracks disappearing): remove unused func📊 Changes
2 files changed (+192 additions, -8 deletions)
View changed files
📝
app/Services/SongService.php(+22 -8)➕
tests/Integration/Services/SongServiceTest.php(+170 -0)📄 Description
Fixes #1740
The current editing song process contains a bug where if the user selects to edit multiple songs and leaves the track blank, the track numbers are removed. This is because the data object that is passed contains
track: null, which the system takes as the user's choice, when the user has positively decided to leave it blank.The change makes an initial check if the user is editing multiple songs, and if so, if the user has left
trackas blank.Also added some unit tests for
SongService.phpto confirm the logic, which required adding a new factory forSongUpdateData.php.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.