Skip to content

Commit

Permalink
BZ1310713 : [QA] (6.2.z) "Complete" button of task row only working o…
Browse files Browse the repository at this point in the history
…nce. Renamed Complete button to Open and used just for open details
  • Loading branch information
nmirasch committed Feb 23, 2016
1 parent 6723ac9 commit ab595fb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Expand Up @@ -478,14 +478,15 @@ public void execute(TaskSummary task) {
}
}));

cells.add(new CompleteActionHasCell(constants.Complete(), new ActionCell.Delegate<TaskSummary>() {
cells.add(new CompleteActionHasCell(constants.Open(), new ActionCell.Delegate<TaskSummary>() {
@Override
public void execute(TaskSummary task) {
placeManager.goTo("Task Details Multi");
boolean logOnly = false;
if(task.getStatus().equals("Completed") && task.isLogOnly()){
logOnly = true;
}
selectedRow = -1;
taskSelected.fire(new TaskSelectionEvent(task.getTaskId(), task.getName(), task.isForAdmin(), logOnly));
}
}));
Expand Down Expand Up @@ -525,7 +526,7 @@ public CompleteActionHasCell(String text, ActionCell.Delegate<TaskSummary> deleg
public void render(Context context, TaskSummary value, SafeHtmlBuilder sb) {
if (value.getActualOwner() != null && value.getStatus().equals("InProgress")) {
SafeHtmlBuilder mysb = new SafeHtmlBuilder();
mysb.appendHtmlConstant("<a href='javascript:;' class='btn btn-mini' style='margin-right:5px;' title='"+constants.Complete()+"'>"+constants.Complete()+"</a>");
mysb.appendHtmlConstant("<a href='javascript:;' class='btn btn-mini' style='margin-right:5px;' title='"+constants.Open()+"'>"+constants.Open()+"</a>");
sb.append(mysb.toSafeHtml());
}
}
Expand Down
Expand Up @@ -61,6 +61,8 @@ public interface Constants extends Messages {

String Complete();

String Open();

String Release();

String Claim();
Expand Down
Expand Up @@ -17,6 +17,7 @@ Status=Status
Due_On=Due On
Parent=Parent
Complete=Complete
Open=Open
Release=Release
Claim=Claim
Work=Work
Expand Down

0 comments on commit ab595fb

Please sign in to comment.