Skip to content

Commit

Permalink
Last minute fix for bug found while testing 5.13 release (table editor)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarrez committed Jun 19, 2013
1 parent 8b2d307 commit 03ecd0f
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,16 @@ protected Object addTaskRow(Object previousTaskItemId, String taskName, String t
// assignee
ComboBox assigneeComboBox = new ComboBox();
assigneeComboBox.setNullSelectionAllowed(true);
if (taskAssignee == null) {
assigneeComboBox.setValue(null);
} else {
assigneeComboBox.setValue(taskAssignee);
}

for (User user : ProcessEngines.getDefaultProcessEngine().getIdentityService().createUserQuery().orderByUserFirstName().asc().list()) {
assigneeComboBox.addItem(user.getId());
assigneeComboBox.setItemCaption(user.getId(), user.getFirstName() + " " + user.getLastName());
}

if (taskAssignee != null) {
assigneeComboBox.select(taskAssignee);
}

newItem.getItemProperty(ID_ASSIGNEE).setValue(assigneeComboBox);

// groups
Expand Down

0 comments on commit 03ecd0f

Please sign in to comment.