Defect #32471 » 0003-Show-toolbar-for-full-width-custom-fields-with-text-.patch
| app/helpers/custom_fields_helper.rb | ||
|---|---|---|
| 128 | 128 | |
| 129 | 129 |
# Returns the custom field tag for when bulk editing objects |
| 130 | 130 |
def custom_field_tag_for_bulk_edit(prefix, custom_field, objects=nil, value='') |
| 131 |
css = custom_field.css_classes |
|
| 132 |
if custom_field.full_text_formatting? |
|
| 133 |
css += ' wiki-edit' |
|
| 134 |
end |
|
| 131 | 135 |
custom_field.format.bulk_edit_tag( |
| 132 | 136 |
self, |
| 133 | 137 |
custom_field_tag_id(prefix, custom_field), |
| ... | ... | |
| 135 | 139 |
custom_field, |
| 136 | 140 |
objects, |
| 137 | 141 |
value, |
| 138 |
:class => custom_field.css_classes)
|
|
| 142 |
:class => css)
|
|
| 139 | 143 |
end |
| 140 | 144 | |
| 141 | 145 |
# Returns custom field value tag |
| app/views/issues/bulk_edit.html.erb | ||
|---|---|---|
| 212 | 212 |
<label><%= custom_field.name %></label> |
| 213 | 213 |
<%= custom_field_tag_for_bulk_edit('issue', custom_field, @issues, @issue_params[:custom_field_values][custom_field.id.to_s]) %>
|
| 214 | 214 |
</p> |
| 215 |
<%= wikitoolbar_for "issue_custom_field_values_#{custom_field.id}", preview_issue_path(:project_id => @project, :issue_id => nil) if custom_field.full_text_formatting? %>
|
|
| 215 | 216 |
<% end %> |
| 216 | 217 | |
| 217 | 218 |
</fieldset> |