Skip to content

Commit 87f75b5

Browse files
committed
Merge branch 'file_field_label' of https://github.com/josiahivey/browsercms into josiahivey-file_field_label
2 parents cd8b953 + c108b1a commit 87f75b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/cms/form_builder/_cms_file_field.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<% if a.object.attachment_name == method.to_s %>
1111
<%= a.hidden_field :attachment_name, :value => method.to_s %>
1212
<div class="fields file_fields">
13-
<%= a.cms_label :data, cms_options[:label] %>
13+
<%= a.cms_label method, cms_options[:label] %>
1414
<div id="<%= object_name %>_<%= method %>_div" class="file_inputs">
1515
<%= a.file_field :data, options.merge('data-purpose'=>"cms_file_field") %>
1616
</div>

0 commit comments

Comments
 (0)