Commit de6ca8ef authored by Phil Hughes's avatar Phil Hughes

Chnaged noteable class check

parent 08f14ef4
- project = @target_project || @project - project = @target_project || @project
- noteable_class = @noteable.nil? ? nil : @noteable.class - noteable_class = @noteable.class if @noteable.present?
:javascript :javascript
GitLab.GfmAutoComplete.dataSource = "#{autocomplete_sources_namespace_project_path(project.namespace, project, type: noteable_class, type_id: params[:id])}" GitLab.GfmAutoComplete.dataSource = "#{autocomplete_sources_namespace_project_path(project.namespace, project, type: noteable_class, type_id: params[:id])}"
......
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