summaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-04-11 10:31:52 +0000
committerGo MAEDA <maeda@farend.jp>2020-04-11 10:31:52 +0000
commit5fe6aa0fc01fba538b1a21a80059fd4f917f193f (patch)
treeafe485da57362d01978c30288b67d445deb351ea /app/helpers
parent9e6e2573bc7d7f6014c0bbdaec837932d92564af (diff)
downloadredmine-5fe6aa0fc01fba538b1a21a80059fd4f917f193f.tar.gz
redmine-5fe6aa0fc01fba538b1a21a80059fd4f917f193f.zip
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
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/custom_fields_helper.rb8
1 files changed, 7 insertions, 1 deletions
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