diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-24 13:19:50 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-24 13:19:50 +0000 |
commit | a7824755eeac926b2eabd16b2e002fde426f4141 (patch) | |
tree | 3b7bec16188b9472d55b6837e3feaf89b837f7a8 /lib/redmine/field_format.rb | |
parent | a85b776324bbe7c335fc3211e2c4d7782778be1b (diff) | |
download | redmine-a7824755eeac926b2eabd16b2e002fde426f4141.tar.gz redmine-a7824755eeac926b2eabd16b2e002fde426f4141.zip |
cleanup: rubocop: fix Lint/ParenthesesAsGroupedExpression in lib/redmine/field_format.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19261 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/field_format.rb')
-rw-r--r-- | lib/redmine/field_format.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/redmine/field_format.rb b/lib/redmine/field_format.rb index bc2def962..2fcd7b79b 100644 --- a/lib/redmine/field_format.rb +++ b/lib/redmine/field_format.rb @@ -271,8 +271,8 @@ module Redmine url = custom_field.url_pattern.to_s.dup url.gsub!('%value%') {URI.encode value.to_s} url.gsub!('%id%') {URI.encode customized.id.to_s} - url.gsub!('%project_id%') {URI.encode (customized.respond_to?(:project) ? customized.project.try(:id) : nil).to_s} - url.gsub!('%project_identifier%') {URI.encode (customized.respond_to?(:project) ? customized.project.try(:identifier) : nil).to_s} + url.gsub!('%project_id%') {URI.encode((customized.respond_to?(:project) ? customized.project.try(:id) : nil).to_s)} + url.gsub!('%project_identifier%') {URI.encode((customized.respond_to?(:project) ? customized.project.try(:identifier) : nil).to_s)} if custom_field.regexp.present? url.gsub!(%r{%m(\d+)%}) do m = $1.to_i |