##// END OF EJS Templates
Add project identifier substitution option to the URL-pattern property of link format custom fields (#15701)....
Jean-Philippe Lang -
r12138:a4a91cab7ef7
parent child
Show More
@@ -289,6 +289,7 module Redmine
289 289 url.gsub!('%value%') {value.to_s}
290 290 url.gsub!('%id%') {customized.id.to_s}
291 291 url.gsub!('%project_id%') {(customized.respond_to?(:project) ? customized.project.try(:id) : nil).to_s}
292 url.gsub!('%project_identifier%') {(customized.respond_to?(:project) ? customized.project.try(:identifier) : nil).to_s}
292 293 if custom_field.regexp.present?
293 294 url.gsub!(%r{%m(\d+)%}) do
294 295 m = $1.to_i
General Comments 0
You need to be logged in to leave comments. Login now