Commit 413ff5b3 authored by Robert Speicher's avatar Robert Speicher Committed by Yorick Peterse

Merge branch 'issue_15390' into 'master'

Fix javascript errors with invalid json because of commas

fixes #15390 

See merge request !3827
parent e2903f28
...@@ -151,6 +151,6 @@ ...@@ -151,6 +151,6 @@
:javascript :javascript
new MilestoneSelect('{"namespace":"#{@project.namespace.path}","path":"#{@project.path}"}'); new MilestoneSelect('{"namespace":"#{@project.namespace.path}","path":"#{@project.path}"}');
new LabelsSelect(); new LabelsSelect();
new IssuableContext('#{current_user.to_json(only: [:username, :id, :name])}'); new IssuableContext('#{escape_javascript(current_user.to_json(only: [:username, :id, :name]))}');
new Subscription('.subscription') new Subscription('.subscription')
new Sidebar(); new Sidebar();
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