MRs created from Template breaks checkboxes

Summary

If a Merge Request is created via a template containing checkboxes, attempting to check those boxes results in a "Someone edited this merge request at the same time you did. Please refresh the page to see changes" error 100% of the time.

If you check your browser's dev tools after an attempt to check one of these boxes, you will see a 409 (Conflict) response from the PATCH request sent to the MR's https://gitlab.com/namespace/project/merge_requests/mr_number.json URL.

This can be worked around by editing the MR and filling the checkboxes [] brackets with an X manually.

This does not occur for template created issues.

Steps to reproduce

  1. Create a new project for test

  2. Create the .gitlab/merge_request_templates folder(s)

  3. Add the attached template.md to this folder, and commit your changes

  4. Create a new branch for testing

  5. Create a new MR using the testing branch

  6. Attempt to check one of the boxes on this MR

Example Project

https://gitlab.com/calebw/mr_test

https://gitlab.com/calebw/mr_test/merge_requests/3

What is the current bug behavior?

You cannot successfully check checkboxes within a Merge Request created from a template.

What is the expected correct behavior?

You can successfully check checkboxes within a Merge Request created from a template.

Relevant logs and/or screenshots

Screen_Shot_2019-10-29_at_2.51.23_PM

Screen_Shot_2019-10-29_at_2.53.09_PM

Output of checks

This bug happens on GitLab.com

Possible fixes

(If you can, link to the line of code that might be responsible for the problem)

Edited by 🤖 GitLab Bot 🤖