diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java index eb19fb98..cc1249a7 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java @@ -407,6 +407,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { add("Avvisi"); add("MailManager_EmailAttachments"); add("Report_Sorteggio"); + add("Report_Sorteggio_BO"); } }; @@ -423,12 +424,12 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { parent = parent.getParentFolder(); } if (folderDaSvuotare.contains(parent.getName())) { - if (0 != folder.getParentFolderId()) { - _log.info("Cancello la cartella " + folder.getName()); - DLAppLocalServiceUtil.deleteFolder(folder.getFolderId()); - } else { + if (0 == folder.getParentFolderId()) { _log.info("Cancello il file " + fileEntry.getName()); DLAppLocalServiceUtil.deleteFileEntry(fileEntry.getFileEntryId()); + } else { + _log.info("Cancello la cartella " + folder.getName()); + DLAppLocalServiceUtil.deleteFolder(folder.getFolderId()); } start--; } else {