summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2016-10-03 17:04:23 -0500
committerMike Greiling <mike@pixelcog.com>2016-12-10 00:54:38 -0600
commit7876e83d0c91e75b91e21ddb9993fc39fde96731 (patch)
tree5a0102d601e589dbf6df3f8d392ed95638fc9fac
parent5934698fc3b7aaf6623959a9740e62ed3d341a42 (diff)
downloadgitlab-ce-7876e83d0c91e75b91e21ddb9993fc39fde96731.tar.gz
remove unnecessary nonce id
-rw-r--r--app/views/projects/commit/_change.html.haml5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/views/projects/commit/_change.html.haml b/app/views/projects/commit/_change.html.haml
index 59af45ee1ed..e38ee6a2afa 100644
--- a/app/views/projects/commit/_change.html.haml
+++ b/app/views/projects/commit/_change.html.haml
@@ -23,9 +23,8 @@
- if can?(current_user, :push_code, @project)
.js-create-merge-request-container
.checkbox
- - nonce = SecureRandom.hex
- = label_tag "create_merge_request-#{nonce}" do
- = check_box_tag 'create_merge_request', 1, true, class: 'js-create-merge-request', id: "create_merge_request-#{nonce}"
+ = label_tag do
+ = check_box_tag 'create_merge_request', 1, true, class: 'js-create-merge-request'
Start a <strong>new merge request</strong> with these changes
- else
= hidden_field_tag 'create_merge_request', 1