Skip to content

Commit

Permalink
LPS-85928 Our usual order.. unless this messes up staging, see Bookma…
Browse files Browse the repository at this point in the history
…rksFolderLocalServiceImpl
  • Loading branch information
brianchandotcom committed Oct 11, 2018
1 parent c7d36fa commit fef3613
Showing 1 changed file with 8 additions and 6 deletions.
Expand Up @@ -184,20 +184,22 @@ public AssetListEntry deleteAssetListEntry(AssetListEntry assetListEntry)
public AssetListEntry deleteAssetListEntry(long assetListEntryId)
throws PortalException {

AssetListEntry assetListEntry =
assetListEntryPersistence.findByPrimaryKey(assetListEntryId);

// Asset List Entry Rels
// Asset list entry

assetListEntryAssetEntryRelPersistence.removeByAssetListEntryId(
AssetListEntry assetListEntry = assetListEntryPersistence.remove(
assetListEntryId);

// Resources

resourceLocalService.deleteResource(
assetListEntry, ResourceConstants.SCOPE_INDIVIDUAL);

return assetListEntryPersistence.remove(assetListEntryId);
// Asset list entry rels

assetListEntryAssetEntryRelPersistence.removeByAssetListEntryId(
assetListEntryId);

return assetListEntry;
}

@Override
Expand Down

0 comments on commit fef3613

Please sign in to comment.