Commit 7baebd32 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Do not create input if fieldName is not defined

parent 51b8b871
No related merge requests found
......@@ -369,7 +369,7 @@ class GitLabDropdown
if @options.toggleLabel
$(@el).find(".dropdown-toggle-text").text @options.toggleLabel(selectedObject)
if value?
if !field.length
if !field.length and fieldName
# Create hidden input for form
input = "<input type='hidden' name='#{fieldName}' value='#{value}' />"
if @options.inputId?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment