{"action":"opened","issue":{"url":"https://api.github.com/repos/yogiben/meteor-admin/issues/125","labels_url":"https://api.github.com/repos/yogiben/meteor-admin/issues/125/labels{/name}","comments_url":"https://api.github.com/repos/yogiben/meteor-admin/issues/125/comments","events_url":"https://api.github.com/repos/yogiben/meteor-admin/issues/125/events","html_url":"https://github.com/yogiben/meteor-admin/issues/125","id":55958357,"number":125,"title":"Callstack size exceeded with userId field.","user":{"login":"theduke","id":241621,"avatar_url":"https://avatars.githubusercontent.com/u/241621?v=3","gravatar_id":"","url":"https://api.github.com/users/theduke","html_url":"https://github.com/theduke","followers_url":"https://api.github.com/users/theduke/followers","following_url":"https://api.github.com/users/theduke/following{/other_user}","gists_url":"https://api.github.com/users/theduke/gists{/gist_id}","starred_url":"https://api.github.com/users/theduke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theduke/subscriptions","organizations_url":"https://api.github.com/users/theduke/orgs","repos_url":"https://api.github.com/users/theduke/repos","events_url":"https://api.github.com/users/theduke/events{/privacy}","received_events_url":"https://api.github.com/users/theduke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-29T21:20:07Z","updated_at":"2015-01-29T21:20:07Z","closed_at":null,"body":"When I add an userId field with autovalue for the current user id, \r\nadmin crashes with the exception: \"RangeError: Maximum call stack size exceeded\".\r\n\r\nI have confirmed that it is this field that causes the error, everything works smoothly when it is not there.\r\n\r\n```javascript\r\nuserId: {\r\n    type: String,\r\n    autoValue: function() {\r\n      if (this.isInsert) {\r\n        return this.userId;\r\n      }\r\n      else {\r\n        this.unset();\r\n      }\r\n    }\r\n  },\r\n```\r\n\r\n```\r\nW20150129-22:16:16.357(1)? (STDERR) \r\nW20150129-22:16:16.362(1)? (STDERR) /home/theduke/.meteor/packages/meteor-tool/.1.0.38.ieqxkv++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:173\r\nW20150129-22:16:16.362(1)? (STDERR) \t\t\t\t\t\tthrow(ex);\r\nW20150129-22:16:16.363(1)? (STDERR) \t\t\t\t\t\t      ^\r\nW20150129-22:16:16.365(1)? (STDERR) RangeError: Maximum call stack size exceeded\r\n```"}}