- project = @target_project || @project
- noteable_type = @noteable.class if @noteable.present?

:javascript
  GitLab.GfmAutoComplete.dataSource = "#{autocomplete_sources_namespace_project_path(project.namespace, project, type: noteable_type, type_id: params[:id])}"
  GitLab.GfmAutoComplete.cachedData = undefined;
  GitLab.GfmAutoComplete.setup();

- project = @target_project || @project
- noteable_type = @noteable.class if @noteable.present?

- if project
  :javascript
    GitLab.GfmAutoComplete.dataSource = "#{autocomplete_sources_namespace_project_path(project.namespace, project, type: noteable_type, type_id: params[:id])}"
    GitLab.GfmAutoComplete.cachedData = undefined;
    GitLab.GfmAutoComplete.setup();

Fix 500 error when creating mileston from group page
Fix 500 error when creating mileston from group page

Signed-off-by: Dmitriy Zaporozhets <be23d75b156792e5acab51b196a2deb155d35d6a@gmail.com>
