After changing issue templates, preview is not for the current issue description
Summary
Odd (non-regular) behavior with issue templates.
Steps to reproduce
- Click "new issue"
- Choose the issue template "Feature Proposal"
- Click after
### Proposal
as if you were to edit the issue description - Hit enter
- The first line disappears
- Click "preview"
- You'll see the default template, not the preview of the "feature proposals" template
Example Project
GitLab CE
What is the current bug behavior?
Text disappears, preview is not for the current issue description
What is the expected correct behavior?
Text does not disappear, preview is for the current issue description
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:env:info
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)