diff --git a/module/task/js/activate.ui.js b/module/task/js/activate.ui.js index 539b377ded..3b47ca60c5 100644 --- a/module/task/js/activate.ui.js +++ b/module/task/js/activate.ui.js @@ -163,7 +163,11 @@ function updateAssignedTo() index ++; }); - if(multiple && mode == 'linear' && $('#modalTeam tr.member-doing').length == 0 && $('#modalTeam tr.member-wait').length >= 1) assignedTo = assignedToItems[0].value; + if(multiple && mode == 'linear' && $('#modalTeam tr.member-doing').length == 0 && $('#modalTeam tr.member-wait').length >= 1) + { + index --; + assignedTo = assignedToItems[index].value; + } $assignedToPicker.render({items: assignedToItems, disabled: true}); }