From d40ed8bfa128cea1f1111193d3b75f1caf2c859f Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 9 Nov 2019 06:54:19 +0000 Subject: [PATCH] cleanup: rubocop: fix Layout/AlignArguments in app/helpers/custom_fields_helper.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18991 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/custom_fields_helper.rb | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/app/helpers/custom_fields_helper.rb b/app/helpers/custom_fields_helper.rb index 00140396d..48fc6140a 100644 --- a/app/helpers/custom_fields_helper.rb +++ b/app/helpers/custom_fields_helper.rb @@ -88,13 +88,13 @@ module CustomFieldsHelper :issues_url => auto_complete_issues_path(:project_id => custom_value.customized.project, :q => '') } if custom_value.customized && custom_value.customized.project end - - custom_value.custom_field.format.edit_tag self, + custom_value.custom_field.format.edit_tag( + self, custom_field_tag_id(prefix, custom_value.custom_field), custom_field_tag_name(prefix, custom_value.custom_field), custom_value, :class => css, - :data => data + :data => data) end # Return custom field name tag @@ -109,10 +109,10 @@ module CustomFieldsHelper required = options[:required] || custom_value.custom_field.is_required? for_tag_id = options.fetch(:for_tag_id, "#{name}_custom_field_values_#{custom_value.custom_field.id}") content = custom_field_name_tag custom_value.custom_field - - content_tag "label", content + + content_tag( + "label", content + (required ? " *".html_safe : ""), - :for => for_tag_id + :for => for_tag_id) end # Return custom field tag with its label tag @@ -128,13 +128,14 @@ 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='') - custom_field.format.bulk_edit_tag self, + custom_field.format.bulk_edit_tag( + self, custom_field_tag_id(prefix, custom_field), custom_field_tag_name(prefix, custom_field), custom_field, objects, value, - :class => "#{custom_field.field_format}_cf" + :class => "#{custom_field.field_format}_cf") end # Returns custom field value tag -- 2.39.5