Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Bug 844239 - [WebTrans] WebUI shows Save FAILED on page 2 or later
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Huang authored and alex-sl-eng committed Aug 2, 2012
1 parent ae842b4 commit 3192a92
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Expand Up @@ -759,7 +759,8 @@ public void onSuccess(UpdateTransUnitResult result)
{
UndoLink undoLink = undoLinkProvider.get();
undoLink.prepareUndoFor(result);
targetContentsPresenter.addUndoLink(row, undoLink);
int rowIndex = row % display.getPageSize();
targetContentsPresenter.addUndoLink(rowIndex, undoLink);
eventBus.fireEvent(new NotificationEvent(Severity.Info, messages.notifyUpdateSaved()));
}
else
Expand Down
Expand Up @@ -812,7 +812,10 @@ public void concealDisplay()

public void addUndoLink(int row, UndoLink undoLink)
{
TargetContentsDisplay targetContentsDisplay = displayList.get(row);
targetContentsDisplay.addUndo(undoLink);
if (row >=0 && row < displayList.size())
{
TargetContentsDisplay targetContentsDisplay = displayList.get(row);
targetContentsDisplay.addUndo(undoLink);
}
}
}

0 comments on commit 3192a92

Please sign in to comment.