From 0d61a4c3378537ab9c733335ad46b4e47131d9c0 Mon Sep 17 00:00:00 2001 From: Tobias Tiederle Date: Thu, 28 Mar 2019 12:17:58 +0100 Subject: [PATCH] Fix orphaned trash entries --- .../liferay/jukebox/service/impl/SongLocalServiceImpl.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docroot/WEB-INF/src/org/liferay/jukebox/service/impl/SongLocalServiceImpl.java b/docroot/WEB-INF/src/org/liferay/jukebox/service/impl/SongLocalServiceImpl.java index b3ed678..d2e49ea 100644 --- a/docroot/WEB-INF/src/org/liferay/jukebox/service/impl/SongLocalServiceImpl.java +++ b/docroot/WEB-INF/src/org/liferay/jukebox/service/impl/SongLocalServiceImpl.java @@ -226,6 +226,11 @@ public Song deleteSong(long songId) } } + // Trash + + trashEntryLocalService.deleteEntry( + Song.class.getName(), songId); + return songPersistence.remove(songId); }