Skip to content

Commit

Permalink
[#3284] - set deviceIds in selected assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvin Kome committed Nov 8, 2019
1 parent a16e771 commit bf89ac7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dashboard/app/js/lib/views/devices/assignment-edit-views.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,17 @@ FLOW.AssignmentEditView = FLOW.ReactComponentView.extend(
sa.set('startDate', startDateParse);
sa.set('language', 'en');

// set survey group
if (FLOW.selectedControl.get('selectedSurveyGroup')) {
sa.set(
'surveyId',
FLOW.selectedControl.get('selectedSurveyGroup').get('keyId')
);
}

// set form and devices
sa.set('formIds', surveys);
sa.set('deviceIds', devices);

FLOW.store.commit();

Expand Down

0 comments on commit bf89ac7

Please # to comment.