Commit 9617c274 authored by Robert Speicher's avatar Robert Speicher

Merge branch 'issue_15390' into 'master'

Fix javascript errors with invalid json because of commas

fixes #15390 

See merge request !3827
parents 6521ac73 97b5e49d
......@@ -151,6 +151,6 @@
:javascript
new MilestoneSelect('{"namespace":"#{@project.namespace.path}","path":"#{@project.path}"}');
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 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