Skip to content
Snippets Groups Projects
Commit 65197b8a authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Sanitize issues title in autocomplete for comment

parent 06755524
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -44,7 +44,7 @@ GitLab.GfmAutoComplete =
tpl: @Issues.template
callbacks:
before_save: (issues) ->
$.map issues, (i) -> id: i.id, title: i.title, search: "#{i.id} #{i.title}"
$.map issues, (i) -> id: i.id, title: sanitize(i.title), search: "#{i.id} #{i.title}"
 
input.one "focus", =>
$.getJSON(@dataSource).done (data) ->
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment