From 4cc3ed640b0f44b21729ff1d57867d2cae75265c Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Tue, 19 Nov 2019 10:17:06 +0100 Subject: [PATCH] Follow up - 848175a290e69a3903a4ebbe88bcb52d8413e382 - Can't access session information for User ObjectManager::Attribute in fields URL template. --- .../app/controllers/_application_controller_form.coffee | 2 +- app/assets/javascripts/app/index.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/controllers/_application_controller_form.coffee b/app/assets/javascripts/app/controllers/_application_controller_form.coffee index 5dbf404c6..426651eae 100644 --- a/app/assets/javascripts/app/controllers/_application_controller_form.coffee +++ b/app/assets/javascripts/app/controllers/_application_controller_form.coffee @@ -362,7 +362,7 @@ class App.ControllerForm extends App.Controller else placeholderObjects = {} if @model.className && !_.isEmpty(attribute.linktemplate) && !_.isEmpty(@params[attribute.name]) - placeholderObjects = { attribute: attribute, user: App.Session.get(), config: App.Config.all() } + placeholderObjects = { attribute: attribute, session: App.Session.get(), config: App.Config.all() } placeholderObjects[@model.className.toLowerCase()] = @params fullItem = $( App.view('generic/attribute')( diff --git a/app/assets/javascripts/app/index.coffee b/app/assets/javascripts/app/index.coffee index 786d7846f..f08d85ce1 100644 --- a/app/assets/javascripts/app/index.coffee +++ b/app/assets/javascripts/app/index.coffee @@ -158,7 +158,7 @@ class App extends Spine.Controller return if !object.constructor return if !object.constructor.className return if _.isEmpty(object[attributeConfig.name]) - placeholderObjects = { attribute: attributeConfig, user: App.Session.get(), config: App.Config.all() } + placeholderObjects = { attribute: attributeConfig, session: App.Session.get(), config: App.Config.all() } placeholderObjects[object.constructor.className.toLowerCase()] = object "#{App.Utils.htmlEscape(resultLocal)}"