]> source.dussan.org Git - redmine.git/commitdiff
Show toolbar for full width custom fields with text formatting enabled on issues...
authorGo MAEDA <maeda@farend.jp>
Sat, 11 Apr 2020 09:02:01 +0000 (09:02 +0000)
committerGo MAEDA <maeda@farend.jp>
Sat, 11 Apr 2020 09:02:01 +0000 (09:02 +0000)
Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@19691 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/custom_fields_helper.rb
app/views/issues/bulk_edit.html.erb

index 229d5c11fa893a925485dbb84bf2805ff30bec84..c66dae5fccfa839322fc4219915f6717394b1dfc 100644 (file)
@@ -128,6 +128,10 @@ module CustomFieldsHelper
 
   # 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),
@@ -135,7 +139,7 @@ module CustomFieldsHelper
       custom_field,
       objects,
       value,
-      :class => custom_field.css_classes)
+      :class => css)
   end
 
   # Returns custom field value tag
index 663b80038d6ed25dfa05b9abb9d74f6fca686bf1..224ace22ade6b732b9bd579e70463708174c4993 100644 (file)
     <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>