From daf0de0bf1bdee28148a0fa1308a78d8fc26c8da Mon Sep 17 00:00:00 2001 From: Marius BALTEANU Date: Sun, 5 Apr 2020 12:25:08 +0300 Subject: [PATCH] Fix issue inline auto complete in issues bulk edit page for custom fields with text formatting enabled --- app/helpers/custom_fields_helper.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/helpers/custom_fields_helper.rb b/app/helpers/custom_fields_helper.rb index c66dae5fc..6cf09c8ab 100644 --- a/app/helpers/custom_fields_helper.rb +++ b/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 -- 2.22.0