{"action":"created","issue":{"url":"https://api.github.com/repos/JackAdams/meteor-editable-text/issues/46","repository_url":"https://api.github.com/repos/JackAdams/meteor-editable-text","labels_url":"https://api.github.com/repos/JackAdams/meteor-editable-text/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/JackAdams/meteor-editable-text/issues/46/comments","events_url":"https://api.github.com/repos/JackAdams/meteor-editable-text/issues/46/events","html_url":"https://github.com/JackAdams/meteor-editable-text/issues/46","id":103830481,"number":46,"title":"Array of objects","user":{"login":"lunarin","id":10737842,"avatar_url":"https://avatars0.githubusercontent.com/u/10737842?v=3","gravatar_id":"","url":"https://api.github.com/users/lunarin","html_url":"https://github.com/lunarin","followers_url":"https://api.github.com/users/lunarin/followers","following_url":"https://api.github.com/users/lunarin/following{/other_user}","gists_url":"https://api.github.com/users/lunarin/gists{/gist_id}","starred_url":"https://api.github.com/users/lunarin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunarin/subscriptions","organizations_url":"https://api.github.com/users/lunarin/orgs","repos_url":"https://api.github.com/users/lunarin/repos","events_url":"https://api.github.com/users/lunarin/events{/privacy}","received_events_url":"https://api.github.com/users/lunarin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2015-08-29T05:31:44Z","updated_at":"2017-07-12T07:16:21Z","closed_at":"2015-08-29T10:52:28Z","body":"Hi there,\n\nfirst of all thank you very much for the great package. However, I am finding it difficult to implementing this in an each loop. Pardon my tardy post but I am not familiar with posting on git. \n\nI am trying to use editable text in an array of objects deep inside of Meteor.user().profile and its structure is as follows:\n\n\"details\" : [ \n                    {\n                        \"_id\" : \"2ewr5C8rzRgamvisH\",\n                         \"quantity\" : 1\n                    }, \n                    {\n                        \"_id\" : \"5EMP9S8oeHLxP2rMC\",\n                         \"quantity\" : 1\n                    },\n]\n\nhtml:\n\n{{#each details}}\n   {{#with currentUser}}\n        {{> editableText collection=\"users\" field=\"quantity\" context=parent type=\"number\"}}\n   {{/with}}\n{{/each}}\n\njs:\n\nparent:function(){\n    return Template.parentData();\n }\n\nCurrently, I am able to display the data correctly. However, it is not 'editing' the value. Do you know what I doing wrong and what can I do?\n\nThank you very much in advance for reading this.\n"},"comment":{"url":"https://api.github.com/repos/JackAdams/meteor-editable-text/issues/comments/314677355","html_url":"https://github.com/JackAdams/meteor-editable-text/issues/46#issuecomment-314677355","issue_url":"https://api.github.com/repos/JackAdams/meteor-editable-text/issues/46","id":314677355,"user":{"login":"salimakhtar786","id":28865202,"avatar_url":"https://avatars2.githubusercontent.com/u/28865202?v=3","gravatar_id":"","url":"https://api.github.com/users/salimakhtar786","html_url":"https://github.com/salimakhtar786","followers_url":"https://api.github.com/users/salimakhtar786/followers","following_url":"https://api.github.com/users/salimakhtar786/following{/other_user}","gists_url":"https://api.github.com/users/salimakhtar786/gists{/gist_id}","starred_url":"https://api.github.com/users/salimakhtar786/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salimakhtar786/subscriptions","organizations_url":"https://api.github.com/users/salimakhtar786/orgs","repos_url":"https://api.github.com/users/salimakhtar786/repos","events_url":"https://api.github.com/users/salimakhtar786/events{/privacy}","received_events_url":"https://api.github.com/users/salimakhtar786/received_events","type":"User","site_admin":false},"created_at":"2017-07-12T07:16:21Z","updated_at":"2017-07-12T07:16:21Z","body":"\r\nMy Users collection is \r\n```\r\n{\r\n\t\"_id\" : \"inCmjZM3QAThunkBK\",\r\n\t\"createdAt\" : ISODate(\"2017-06-14T05:48:12.160Z\"),\r\n\t\"services\" : {\r\n\t\t\"password\" : {\r\n\t\t\t\"bcrypt\" : \"$2a$10$/o2M4fSVxGbQq.g8YqotSuZ49fdZ5Mw2TSxSzPCDEAqc0BU3YhWFG\"\r\n\t\t},\r\n\t\t\"resume\" : {\r\n\t\t\t\"loginTokens\" : [\r\n\t\t\t\t{\r\n\t\t\t\t\t\"when\" : ISODate(\"2017-06-14T07:03:58.297Z\"),\r\n\t\t\t\t\t\"hashedToken\" : \"eGBIL6EIue7dl9kLj00Gg6khN6JXFoln7AAaVVvWf6E=\"\r\n\t\t\t\t},\r\n\t\t\t\t\t\t\t]\r\n\t\t}\r\n\t},\r\n\t\"username\" : \"salim@deligence.com\",\r\n\t\"profile\" : {\r\n\t\t\"firstname\" : \"salim\"\r\n\t},\r\n\t\"status\" : \"Success\"\r\n}\r\n\r\n```\r\nI want to access profile.firstname and using the following codes\r\n```\r\n{{> editableText collection=\"users\" field=\"profile.firstname\"}}\r\n```\r\nBut the above code is not working"}}
{"actor":{"display_login":"salimakhtar786"}}