MBMessage.class.getName(), message.getMessageId(), false);
}
int status = oldStatus;
if (oldStatus == WorkflowConstants.STATUS_PENDING) {
status = WorkflowConstants.STATUS_DRAFT;
<BUG>}
trashVersionLocalService.addTrashVersion(
trashEntryId, MBMessage.class.getName(), message.getMessageId(),
status);
Indexer indexer = IndexerRegistryUtil.nullSafeGetIndexer(</BUG>
MBMessage.class);

MBMessage.class.getName(), message.getMessageId(), false);
}
int status = oldStatus;
if (oldStatus == WorkflowConstants.STATUS_PENDING) {
status = WorkflowConstants.STATUS_DRAFT;
}
if (oldStatus != WorkflowConstants.STATUS_APPROVED) {
trashVersionLocalService.addTrashVersion(
trashEntryId, MBMessage.class.getName(),
message.getMessageId(), status);
}
Indexer indexer = IndexerRegistryUtil.nullSafeGetIndexer(
MBMessage.class);
