瀏覽代碼

Fix issue inline auto complete in issues bulk edit page for custom fields with text formatting enabled (#33255).

Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@19693 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.2.0
Go MAEDA 4 年之前
父節點
當前提交
5fe6aa0fc0
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7
    1
      app/helpers/custom_fields_helper.rb

+ 7
- 1
app/helpers/custom_fields_helper.rb 查看文件

@@ -129,8 +129,13 @@ 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
data = nil
if custom_field.full_text_formatting?
css += ' wiki-edit'
data = {
:auto_complete => true,
:issues_url => auto_complete_issues_path(:q => '')
}
end
custom_field.format.bulk_edit_tag(
self,
@@ -139,7 +144,8 @@ module CustomFieldsHelper
custom_field,
objects,
value,
:class => css)
:class => css,
:data => data)
end

# Returns custom field value tag

Loading…
取消
儲存