Button for Creating a Merge Request is shown on "View Issue" page but fails if Merge Requests are disabled.
Summary
The Button for creating a Merge-Request is shown when Merge Requests are disabled in Issue view
Steps to reproduce
- disable Merge-Requests for a given project
- create a New Issue for this project
- open the Issue
What is the current bug behavior?
The button "Create Merge Request is visible and executing it creates a new branch but no Merge Request (and an error message is shown).
What is the expected correct behavior?
The button should not be visible or disabled with a notice to enable Merge Requests in project settings first
Relevant logs and/or screenshots
(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's very hard to read otherwise.)
Output of checks
(If you are reporting a bug on GitLab.com, write: This bug happens on GitLab.com)
Results of GitLab environment info
GitLab information Version: 10.0.0-rc5 Revision: 2ae38580
Results of GitLab application Check
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)