continue;
}
TrashVersion trashVersion =
trashVersionLocalService.fetchVersion(
trashEntryId, MBCategory.class.getName(),
<BUG>category.getCategoryId());
category.setStatus(trashVersion.getStatus());

mbCategoryPersistence.update(category);
trashVersionLocalService.deleteTrashVersion(trashVersion);
restoreDependentFromTrash(</BUG>
user,

continue;
}
int oldStatus = category.getStatus();
category.setStatus(WorkflowConstants.STATUS_IN_TRASH);
mbCategoryPersistence.update(category);
if (oldStatus != WorkflowConstants.STATUS_APPROVED) {
trashVersionLocalService.addTrashVersion(
trashEntryId, MBCategory.class.getName(),
category.getCategoryId(), oldStatus);
}
moveDependentsToTrash(
user,
