fileEntry, serviceContext.getCommunityPermissions(),
serviceContext.getGuestPermissions());
}
addFileVersion(
user, fileEntry, serviceContext.getModifiedDate(now),
<BUG>fileEntry.getVersion(), null, serviceContext.getStatus());
if (folderId != DLFolderConstants.DEFAULT_PARENT_FOLDER_ID) {</BUG>
DLFolder folder = dlFolderPersistence.findByPrimaryKey(folderId);
folder.setLastPostDate(fileEntry.getModifiedDate());
dlFolderPersistence.update(folder, false);

fileEntry, serviceContext.getCommunityPermissions(),
serviceContext.getGuestPermissions());
}
addFileVersion(
user, fileEntry, serviceContext.getModifiedDate(now),
DLFileEntryConstants.DEFAULT_VERSION, null,
serviceContext.getStatus());
if (folderId != DLFolderConstants.DEFAULT_PARENT_FOLDER_ID) {
DLFolder folder = dlFolderPersistence.findByPrimaryKey(folderId);
folder.setLastPostDate(fileEntry.getModifiedDate());
dlFolderPersistence.update(folder, false);
