-
Notifications
You must be signed in to change notification settings - Fork 587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delete track from playlist does not refresh page with new information #3651
Comments
The action builds a new browse instance having a higher id than the original browse instance. This is the reason why the UI item cannot be updated with the content of the response. Related to ampache#3651
Seems like the response is generated correctly but cannot be inserted into to UI-item... |
that pull should definitely be updating that current browse with the new list now. |
@erezschatz c0148cd should help with that. @lachlan-00 fyi This could also be a problem within LocalPlay playlists (I found similar code there), but I wasn't able to test it. |
I just pulled the latest commits and can attest that it solved the issue |
confirming on localplay and fixed now as well |
Description
Describe the bug
In a playlist page, click on "delete track" does delete the track from the playlist, but the page is not refreshed once the response arrives from the server and the information is not displayed until the user refresh the page manually.
To reproduce
Steps to reproduce the behavior:
Expected behavior
Once the response from the server arrives, the page should refresh and show the new list minus the deleted songs.
Environment
Client type
Logs
Request example POST https://.../server/ajax.server.php?page=playlist&action=delete_track&playlist_id=57&track_id=82483
Response was 200 with the full XML to replace the current page.
Actual logs:
The text was updated successfully, but these errors were encountered: