Skip to content

Commit

Permalink
fix(ZNTA-2297): gettranslationhistoryresult not populating history
Browse files Browse the repository at this point in the history
  • Loading branch information
efloden committed Feb 28, 2018
1 parent 380e991 commit 6d86c7d
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -58,6 +58,7 @@ public class GetTranslationHistoryHandler extends
@Inject
private ResourceUtils resourceUtils;

// TODO: Refactor duplicated code in getTranslationHistory
@Override
public GetTranslationHistoryResult execute(
GetTranslationHistoryAction action, ExecutionContext context)
Expand All @@ -83,6 +84,9 @@ public GetTranslationHistoryResult execute(
Map<Integer, HTextFlowTargetHistory> history = Maps.newHashMap();
TransHistoryItem latest =
getLatest(hTextFlowTarget, hTextFlow, hLocale);
if (hTextFlowTarget != null) {
history = hTextFlowTarget.getHistory();
}
Iterable<TransHistoryItem> historyItems =
Iterables.transform(history.values(),
new TargetHistoryToTransHistoryItemFunction());
Expand Down

0 comments on commit 6d86c7d

Please sign in to comment.