Fixes #3543 - Translate link text of link template in organization sidebar in ticket zoom.

This commit is contained in:
Rolf Schmidt 2021-05-05 07:53:01 +00:00 committed by Thorsten Eckel
parent a862a44bfc
commit 12ad55279a

View file

@ -161,7 +161,7 @@ class App extends Spine.Controller
return if _.isEmpty(object[attributeConfig.name])
placeholderObjects = { attribute: attributeConfig, session: App.Session.get(), config: App.Config.all() }
placeholderObjects[object.constructor.className.toLowerCase()] = object
"<a href=\"#{App.Utils.replaceTags(attributeConfig.linktemplate, placeholderObjects, true)}\" target=\"blank\">#{App.Utils.htmlEscape(resultLocal)}</a>"
"<a href=\"#{App.Utils.replaceTags(attributeConfig.linktemplate, placeholderObjects, true)}\" target=\"blank\">#{App.i18n.translateInline(resultLocal)}</a>"
@view: (name) ->
template = (params = {}) ->