gitlab-org--gitlab-foss/app/views
Douwe Maan 0795698162 Merge branch 'new-mr-disable-change-target-branch' into 'master'
Disable changing of target branch in new merge request page when a branch has already been specified

### What does this MR do?

This MR prevents a user from changing the target branch inside a new merge request page if the target branch has already been specified (e.g. from the shortcut in the activity feed). A link to "Change branches" is provided to allow the user to do this properly.

### Why was this MR needed?

If a user attempted to create a merge request from a shortcut with a pre-specified target branch (e.g. `master`), the dropdown would suggest that the user could change the branch. However, this did not actually work due to duplicate data elements (see #1830 for more details), and the target branch would always be set to the original, default branch. This would lead to confusion, potentially causing an improper merge request to be created.

### What are the relevant issue numbers?

Closes #1830

### Screenshot

![image](https://gitlab.com/stanhu/gitlab-ce/uploads/eeec4f5d4b66625a14be41e5ecbdc016/image.png)

See merge request !846
2015-06-20 10:41:07 +00:00
..
admin Add 2FA status to Admin::Users#show 2015-06-19 15:04:47 -04:00
dashboard Remove text since rss is now to prominent. 2015-06-12 11:58:18 +02:00
devise Add "Remember me" checkbox to LDAP signin form. 2015-06-05 14:37:01 +02:00
doorkeeper Fix consistency issues on New Application page. 2015-06-15 21:27:20 +02:00
errors Add a page title to every page. 2015-04-30 19:12:15 +02:00
events Fix text align in last push event 2015-06-15 14:54:41 +02:00
explore Remove button to all projects on Trending Projects page. 2015-06-14 21:30:53 +02:00
groups Bootlint: Use offset grid classes instead of empty divs 2015-06-16 13:32:32 -04:00
help Bootlint: Modals no longer need a '.hide' class 2015-06-16 13:32:33 -04:00
import Add a page title to every page. 2015-04-30 19:12:15 +02:00
invites Add a page title to every page. 2015-04-30 19:12:15 +02:00
kaminari/gitlab
layouts Bootlint: Add missing type attribute for buttons 2015-06-16 13:33:48 -04:00
notify Use entity number for plus sign 2015-05-27 13:04:18 +00:00
profiles Use User#two_factor_enabled instead of otp_required_for_login 2015-06-19 15:14:37 -04:00
projects Disable changing of target branch in new merge request page when a branch has already been specified 2015-06-19 15:39:56 -07:00
search Dont use fixed pixel size if form controls - its bad for mobile devices 2015-06-08 16:34:58 +02:00
shared Simplify line numbering 2015-06-19 04:31:24 -04:00
snippets Capitalize "X" in "New X". 2015-04-30 21:33:02 +02:00
users Improve UI for phones 2015-06-08 16:54:39 +02:00
votes Fix votes inline rendering 2015-03-20 15:34:29 -07:00