{"action":"closed","issue":{"url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/677","labels_url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/677/labels{/name}","comments_url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/677/comments","events_url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/677/events","html_url":"https://github.com/aldeed/meteor-autoform/issues/677","id":56759294,"number":677,"title":"autoValue not recognizing Session.get()","user":{"login":"nickeleres","id":3239870,"avatar_url":"https://avatars.githubusercontent.com/u/3239870?v=3","gravatar_id":"","url":"https://api.github.com/users/nickeleres","html_url":"https://github.com/nickeleres","followers_url":"https://api.github.com/users/nickeleres/followers","following_url":"https://api.github.com/users/nickeleres/following{/other_user}","gists_url":"https://api.github.com/users/nickeleres/gists{/gist_id}","starred_url":"https://api.github.com/users/nickeleres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickeleres/subscriptions","organizations_url":"https://api.github.com/users/nickeleres/orgs","repos_url":"https://api.github.com/users/nickeleres/repos","events_url":"https://api.github.com/users/nickeleres/events{/privacy}","received_events_url":"https://api.github.com/users/nickeleres/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-06T01:54:58Z","updated_at":"2015-02-06T02:02:02Z","closed_at":"2015-02-06T02:02:02Z","body":"Spoke to a couple people who recommended I bring this here as a bug.  I am setting a session variable here in the `onBeforeAction` method\r\n\r\n         Router.route('singleDetails', {\r\n\t\t\tpath: '/speakers/singleDetails/:_id',\r\n\t\t\ttemplate: 'singleDetails',\r\n\t\t\tdata: function(){\r\n\t\t\t\treturn Speakers.findOne({_id: this.params._id});\r\n\t\t\t},\r\n\t\t\tonBeforeAction: function(){\r\n\t\t\t\tconsole.log(this.params._id);\r\n\t\t\t\tSession.set('pathId', this.params._id);\r\n\t\t\t\tthis.next();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tTemplate.singleDetails.helpers({\r\n\r\n\t\t\tsingleDetails: function(){\r\n\t\t\t\treturn singleDetails.find({});\r\n\t\t\t}\r\n\t\t});\r\n\r\nBut when I try to `get` it in my schema, it console.log's to null and it gives me a server error\r\n\r\n        speakerId: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tautoValue: function(){\r\n\t\t\t\t\tSession.get('idPath'):\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\nIn short: I am not able to dynamically set a schema field to `this.params._id`"}}