Warn before applying issue templates
Description
Currently changing issue templates will replace content without warning even if the template has been edited.
Proposal
- If a user tries to apply a template and the have not manually modified the content of the description field (added or removed text), the chosen template should automatically replace that content without asking for confirmation. For example, if the user has not changed the original description template (“Before raising an issue to the GitLab Community Edition…”), it should be automatically replaced with the chosen template.
- If a user tries to apply a template and they have indeed modified the content of the description field (added or removed text), an alert should be shown asking if they want to apply the chosen template (which will discard their changes) or cancel:
Original Issue
The regression bug described below has been fixed by !7050 (merged)
Summary
This seems to be a regression bug whereby the issue template is appending to the existing description rather than replacing the description.
Steps to reproduce
- Create a new issue on this repo (GitLab CE)
- Select
bug
orfeature proposal
template - Notice that the template appends to the description
Actual behavior
Template is appended to existing description