Project

General

Profile

Defect #32471 » 0003-Show-toolbar-for-full-width-custom-fields-with-text-.patch

Marius BĂLTEANU, 2020-04-05 10:45

View differences:

app/helpers/custom_fields_helper.rb
# Returns the custom field tag for when bulk editing objects
def custom_field_tag_for_bulk_edit(prefix, custom_field, objects=nil, value='')
css = custom_field.css_classes
if custom_field.full_text_formatting?
css += ' wiki-edit'
end
custom_field.format.bulk_edit_tag(
self,
custom_field_tag_id(prefix, custom_field),
......
custom_field,
objects,
value,
:class => custom_field.css_classes)
:class => css)
end
# Returns custom field value tag
app/views/issues/bulk_edit.html.erb
<label><%= custom_field.name %></label>
<%= custom_field_tag_for_bulk_edit('issue', custom_field, @issues, @issue_params[:custom_field_values][custom_field.id.to_s]) %>
</p>
<%= wikitoolbar_for "issue_custom_field_values_#{custom_field.id}", preview_issue_path(:project_id => @project, :issue_id => nil) if custom_field.full_text_formatting? %>
<% end %>
</fieldset>
(7-7/9)