Commit 3ed4fb44 authored by Constance Okoghenun's avatar Constance Okoghenun

Added isEE guard to milestone methods of board list model

parent e2089ffc
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
import { __ } from '~/locale'; import { __ } from '~/locale';
import ListLabel from '~/vue_shared/models/label'; import ListLabel from '~/vue_shared/models/label';
import ListAssignee from '~/vue_shared/models/assignee'; import ListAssignee from '~/vue_shared/models/assignee';
import { urlParamsToObject } from '~/lib/utils/common_utils'; import { isEE, urlParamsToObject } from '~/lib/utils/common_utils';
import boardsStore from '../stores/boards_store'; import boardsStore from '../stores/boards_store';
import ListMilestone from './milestone'; import ListMilestone from './milestone';
...@@ -79,7 +79,7 @@ class List { ...@@ -79,7 +79,7 @@ class List {
entityType = 'label_id'; entityType = 'label_id';
} else if (this.assignee) { } else if (this.assignee) {
entityType = 'assignee_id'; entityType = 'assignee_id';
} else if (this.milestone) { } else if (isEE && this.milestone) {
entityType = 'milestone_id'; entityType = 'milestone_id';
} }
...@@ -198,7 +198,7 @@ class List { ...@@ -198,7 +198,7 @@ class List {
issue.addAssignee(this.assignee); issue.addAssignee(this.assignee);
} }
if (this.milestone) { if (isEE && this.milestone) {
if (listFrom && listFrom.type === 'milestone') { if (listFrom && listFrom.type === 'milestone') {
issue.removeMilestone(listFrom.milestone); issue.removeMilestone(listFrom.milestone);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment