{"action":"created","issue":{"url":"https://api.github.com/repos/BiologicalRecordsCentre/iRecord/issues/44","repository_url":"https://api.github.com/repos/BiologicalRecordsCentre/iRecord","labels_url":"https://api.github.com/repos/BiologicalRecordsCentre/iRecord/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/BiologicalRecordsCentre/iRecord/issues/44/comments","events_url":"https://api.github.com/repos/BiologicalRecordsCentre/iRecord/issues/44/events","html_url":"https://github.com/BiologicalRecordsCentre/iRecord/issues/44","id":150360417,"number":44,"title":"Habitat does not always populate for saved sites","user":{"login":"kitenetter","id":16039111,"avatar_url":"https://avatars.githubusercontent.com/u/16039111?v=3","gravatar_id":"","url":"https://api.github.com/users/kitenetter","html_url":"https://github.com/kitenetter","followers_url":"https://api.github.com/users/kitenetter/followers","following_url":"https://api.github.com/users/kitenetter/following{/other_user}","gists_url":"https://api.github.com/users/kitenetter/gists{/gist_id}","starred_url":"https://api.github.com/users/kitenetter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kitenetter/subscriptions","organizations_url":"https://api.github.com/users/kitenetter/orgs","repos_url":"https://api.github.com/users/kitenetter/repos","events_url":"https://api.github.com/users/kitenetter/events{/privacy}","received_events_url":"https://api.github.com/users/kitenetter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/BiologicalRecordsCentre/iRecord/labels/bug","name":"bug","color":"ee0701"}],"state":"open","locked":false,"assignee":{"login":"kitenetter","id":16039111,"avatar_url":"https://avatars.githubusercontent.com/u/16039111?v=3","gravatar_id":"","url":"https://api.github.com/users/kitenetter","html_url":"https://github.com/kitenetter","followers_url":"https://api.github.com/users/kitenetter/followers","following_url":"https://api.github.com/users/kitenetter/following{/other_user}","gists_url":"https://api.github.com/users/kitenetter/gists{/gist_id}","starred_url":"https://api.github.com/users/kitenetter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kitenetter/subscriptions","organizations_url":"https://api.github.com/users/kitenetter/orgs","repos_url":"https://api.github.com/users/kitenetter/repos","events_url":"https://api.github.com/users/kitenetter/events{/privacy}","received_events_url":"https://api.github.com/users/kitenetter/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-04-22T12:47:45Z","updated_at":"2016-04-22T15:39:31Z","closed_at":null,"body":"When a site is saved, its associated habitat details appear to get saved as well, but when re-using a saved site it seems to be very hit and miss as to whether the habitat box gets filled in.\r\nAs an immediate fix, is it okay if I edit the standard forms so that the habitat field becomes lockable?\r\nAnd in the longer term can we fix it so that the habitat is always filled in for saved sites?\r\n"},"comment":{"url":"https://api.github.com/repos/BiologicalRecordsCentre/iRecord/issues/comments/213479084","html_url":"https://github.com/BiologicalRecordsCentre/iRecord/issues/44#issuecomment-213479084","issue_url":"https://api.github.com/repos/BiologicalRecordsCentre/iRecord/issues/44","id":213479084,"user":{"login":"kitenetter","id":16039111,"avatar_url":"https://avatars.githubusercontent.com/u/16039111?v=3","gravatar_id":"","url":"https://api.github.com/users/kitenetter","html_url":"https://github.com/kitenetter","followers_url":"https://api.github.com/users/kitenetter/followers","following_url":"https://api.github.com/users/kitenetter/following{/other_user}","gists_url":"https://api.github.com/users/kitenetter/gists{/gist_id}","starred_url":"https://api.github.com/users/kitenetter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kitenetter/subscriptions","organizations_url":"https://api.github.com/users/kitenetter/orgs","repos_url":"https://api.github.com/users/kitenetter/repos","events_url":"https://api.github.com/users/kitenetter/events{/privacy}","received_events_url":"https://api.github.com/users/kitenetter/received_events","type":"User","site_admin":false},"created_at":"2016-04-22T15:39:31Z","updated_at":"2016-04-22T15:39:31Z","body":"Okay, I'm nervous of trying to add field locking to the live site if it might not work as expected, so will leave that for now.\r\nThe lack of consistency in completing the habitat attribute is something that has been happening ever since I started using iRecord, and another user mentioned it on Facebook today which is what prompted me to add it as an issue. Where I most often notice it is if I add records for my garden. My site is saved as \"Great Kimble: Bridge Street garden\", so I normally type in \"Great\" to call up the site. Sometimes it auto-fills the habitat, sometimes it doesn't. \r\nI've not been able to tie down why it works sometimes and not others. I always use the add a list form, not sure if it is an issue on other forms. And for my garden I always fill in the habitat manually if it hasn't auto-completed, so presumably it isn't remembering anything from the previous use.\r\nI've just tried adding a new record (16:29, 22 April, via Chrome) and it currently isn't auto-filling. What it should fill in is \"Arable land, gardens or parks: Garden and parks\".\r\nIf I look for Javascript errors after entering the site name I get:\r\n![image](https://cloud.githubusercontent.com/assets/16039111/14746682/ab1e9ee0-08a8-11e6-8470-b4090c27dd07.png)\r\n"}}