]> source.dussan.org Git - redmine.git/commitdiff
use "do end" instead of {} at lib/redmine/field_format.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 13 Nov 2020 12:40:33 +0000 (12:40 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 13 Nov 2020 12:40:33 +0000 (12:40 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20359 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/field_format.rb

index 04b4cf9ea4f86bb271392104ca816604aa849cef..9dd06c5b8fce71a1701949287929e99c48c38b42 100644 (file)
@@ -271,16 +271,16 @@ module Redmine
         url = custom_field.url_pattern.to_s.dup
         url.gsub!('%value%') {Addressable::URI.encode value.to_s}
         url.gsub!('%id%') {Addressable::URI.encode customized.id.to_s}
-        url.gsub!('%project_id%') {
+        url.gsub!('%project_id%') do
           Addressable::URI.encode(
             (customized.respond_to?(:project) ? customized.project.try(:id) : nil).to_s
           )
-        }
-        url.gsub!('%project_identifier%') {
+        end
+        url.gsub!('%project_identifier%') do
           Addressable::URI.encode(
             (customized.respond_to?(:project) ? customized.project.try(:identifier) : nil).to_s
           )
-        }
+        end
         if custom_field.regexp.present?
           url.gsub!(%r{%m(\d+)%}) do
             m = $1.to_i