{"action":"opened","number":49,"pull_request":{"url":"https://api.github.com/repos/shannah/xataface/pulls/49","id":28929715,"html_url":"https://github.com/shannah/xataface/pull/49","diff_url":"https://github.com/shannah/xataface/pull/49.diff","patch_url":"https://github.com/shannah/xataface/pull/49.patch","issue_url":"https://api.github.com/repos/shannah/xataface/issues/49","number":49,"state":"open","locked":false,"title":"Update RecordBrowser.js","user":{"login":"JerOrc","id":10924955,"avatar_url":"https://avatars.githubusercontent.com/u/10924955?v=3","gravatar_id":"","url":"https://api.github.com/users/JerOrc","html_url":"https://github.com/JerOrc","followers_url":"https://api.github.com/users/JerOrc/followers","following_url":"https://api.github.com/users/JerOrc/following{/other_user}","gists_url":"https://api.github.com/users/JerOrc/gists{/gist_id}","starred_url":"https://api.github.com/users/JerOrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JerOrc/subscriptions","organizations_url":"https://api.github.com/users/JerOrc/orgs","repos_url":"https://api.github.com/users/JerOrc/repos","events_url":"https://api.github.com/users/JerOrc/events{/privacy}","received_events_url":"https://api.github.com/users/JerOrc/received_events","type":"User","site_admin":false},"body":"Hello, it's my first correction on github. Sorry for my poor english, I'm french.\r\nInside code of \"$.fn.RecordBrowserWidget\", functions updatePermissions() and updateEditable() are declared only if the object isn't frozen but later in the code, frozen or not, if the object has a value these two functions are called causing an exception.\r\nSo i move the declaration of those two functions before.\r\n\r\nThis bug can be reproduced in a edit form with two lookup fields witch have filled values but in readonly mode (using getPermissions for example) : the second field doesn't convert the value of the lookup and let the id of the field\r\n\r\nThanks for your job. I love Xataface !","created_at":"2015-02-09T15:34:24Z","updated_at":"2015-02-09T15:34:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cee2f886704b1730119df80e54cc5f901d113c87","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/shannah/xataface/pulls/49/commits","review_comments_url":"https://api.github.com/repos/shannah/xataface/pulls/49/comments","review_comment_url":"https://api.github.com/repos/shannah/xataface/pulls/comments/{number}","comments_url":"https://api.github.com/repos/shannah/xataface/issues/49/comments","statuses_url":"https://api.github.com/repos/shannah/xataface/statuses/c720f951449f7c523c3342f72b63128236947c74","head":{"label":"JerOrc:patch-1","ref":"patch-1","sha":"c720f951449f7c523c3342f72b63128236947c74","user":{"login":"JerOrc","id":10924955,"avatar_url":"https://avatars.githubusercontent.com/u/10924955?v=3","gravatar_id":"","url":"https://api.github.com/users/JerOrc","html_url":"https://github.com/JerOrc","followers_url":"https://api.github.com/users/JerOrc/followers","following_url":"https://api.github.com/users/JerOrc/following{/other_user}","gists_url":"https://api.github.com/users/JerOrc/gists{/gist_id}","starred_url":"https://api.github.com/users/JerOrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JerOrc/subscriptions","organizations_url":"https://api.github.com/users/JerOrc/orgs","repos_url":"https://api.github.com/users/JerOrc/repos","events_url":"https://api.github.com/users/JerOrc/events{/privacy}","received_events_url":"https://api.github.com/users/JerOrc/received_events","type":"User","site_admin":false},"repo":{"id":30541645,"name":"xataface","full_name":"JerOrc/xataface","owner":{"login":"JerOrc","id":10924955,"avatar_url":"https://avatars.githubusercontent.com/u/10924955?v=3","gravatar_id":"","url":"https://api.github.com/users/JerOrc","html_url":"https://github.com/JerOrc","followers_url":"https://api.github.com/users/JerOrc/followers","following_url":"https://api.github.com/users/JerOrc/following{/other_user}","gists_url":"https://api.github.com/users/JerOrc/gists{/gist_id}","starred_url":"https://api.github.com/users/JerOrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JerOrc/subscriptions","organizations_url":"https://api.github.com/users/JerOrc/orgs","repos_url":"https://api.github.com/users/JerOrc/repos","events_url":"https://api.github.com/users/JerOrc/events{/privacy}","received_events_url":"https://api.github.com/users/JerOrc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JerOrc/xataface","description":"Framework for building data-driven web applications in PHP and MySQL","fork":true,"url":"https://api.github.com/repos/JerOrc/xataface","forks_url":"https://api.github.com/repos/JerOrc/xataface/forks","keys_url":"https://api.github.com/repos/JerOrc/xataface/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JerOrc/xataface/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JerOrc/xataface/teams","hooks_url":"https://api.github.com/repos/JerOrc/xataface/hooks","issue_events_url":"https://api.github.com/repos/JerOrc/xataface/issues/events{/number}","events_url":"https://api.github.com/repos/JerOrc/xataface/events","assignees_url":"https://api.github.com/repos/JerOrc/xataface/assignees{/user}","branches_url":"https://api.github.com/repos/JerOrc/xataface/branches{/branch}","tags_url":"https://api.github.com/repos/JerOrc/xataface/tags","blobs_url":"https://api.github.com/repos/JerOrc/xataface/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JerOrc/xataface/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JerOrc/xataface/git/refs{/sha}","trees_url":"https://api.github.com/repos/JerOrc/xataface/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JerOrc/xataface/statuses/{sha}","languages_url":"https://api.github.com/repos/JerOrc/xataface/languages","stargazers_url":"https://api.github.com/repos/JerOrc/xataface/stargazers","contributors_url":"https://api.github.com/repos/JerOrc/xataface/contributors","subscribers_url":"https://api.github.com/repos/JerOrc/xataface/subscribers","subscription_url":"https://api.github.com/repos/JerOrc/xataface/subscription","commits_url":"https://api.github.com/repos/JerOrc/xataface/commits{/sha}","git_commits_url":"https://api.github.com/repos/JerOrc/xataface/git/commits{/sha}","comments_url":"https://api.github.com/repos/JerOrc/xataface/comments{/number}","issue_comment_url":"https://api.github.com/repos/JerOrc/xataface/issues/comments/{number}","contents_url":"https://api.github.com/repos/JerOrc/xataface/contents/{+path}","compare_url":"https://api.github.com/repos/JerOrc/xataface/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JerOrc/xataface/merges","archive_url":"https://api.github.com/repos/JerOrc/xataface/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JerOrc/xataface/downloads","issues_url":"https://api.github.com/repos/JerOrc/xataface/issues{/number}","pulls_url":"https://api.github.com/repos/JerOrc/xataface/pulls{/number}","milestones_url":"https://api.github.com/repos/JerOrc/xataface/milestones{/number}","notifications_url":"https://api.github.com/repos/JerOrc/xataface/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JerOrc/xataface/labels{/name}","releases_url":"https://api.github.com/repos/JerOrc/xataface/releases{/id}","created_at":"2015-02-09T15:10:43Z","updated_at":"2015-02-09T15:10:53Z","pushed_at":"2015-02-09T15:33:40Z","git_url":"git://github.com/JerOrc/xataface.git","ssh_url":"git@github.com:JerOrc/xataface.git","clone_url":"https://github.com/JerOrc/xataface.git","svn_url":"https://github.com/JerOrc/xataface","homepage":"http://xataface.com","size":19579,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"shannah:master","ref":"master","sha":"fc952d2002687be164d9f8e852b2246f3fa7ddcf","user":{"login":"shannah","id":2677562,"avatar_url":"https://avatars.githubusercontent.com/u/2677562?v=3","gravatar_id":"","url":"https://api.github.com/users/shannah","html_url":"https://github.com/shannah","followers_url":"https://api.github.com/users/shannah/followers","following_url":"https://api.github.com/users/shannah/following{/other_user}","gists_url":"https://api.github.com/users/shannah/gists{/gist_id}","starred_url":"https://api.github.com/users/shannah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shannah/subscriptions","organizations_url":"https://api.github.com/users/shannah/orgs","repos_url":"https://api.github.com/users/shannah/repos","events_url":"https://api.github.com/users/shannah/events{/privacy}","received_events_url":"https://api.github.com/users/shannah/received_events","type":"User","site_admin":false},"repo":{"id":11031463,"name":"xataface","full_name":"shannah/xataface","owner":{"login":"shannah","id":2677562,"avatar_url":"https://avatars.githubusercontent.com/u/2677562?v=3","gravatar_id":"","url":"https://api.github.com/users/shannah","html_url":"https://github.com/shannah","followers_url":"https://api.github.com/users/shannah/followers","following_url":"https://api.github.com/users/shannah/following{/other_user}","gists_url":"https://api.github.com/users/shannah/gists{/gist_id}","starred_url":"https://api.github.com/users/shannah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shannah/subscriptions","organizations_url":"https://api.github.com/users/shannah/orgs","repos_url":"https://api.github.com/users/shannah/repos","events_url":"https://api.github.com/users/shannah/events{/privacy}","received_events_url":"https://api.github.com/users/shannah/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shannah/xataface","description":"Framework for building data-driven web applications in PHP and MySQL","fork":false,"url":"https://api.github.com/repos/shannah/xataface","forks_url":"https://api.github.com/repos/shannah/xataface/forks","keys_url":"https://api.github.com/repos/shannah/xataface/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shannah/xataface/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shannah/xataface/teams","hooks_url":"https://api.github.com/repos/shannah/xataface/hooks","issue_events_url":"https://api.github.com/repos/shannah/xataface/issues/events{/number}","events_url":"https://api.github.com/repos/shannah/xataface/events","assignees_url":"https://api.github.com/repos/shannah/xataface/assignees{/user}","branches_url":"https://api.github.com/repos/shannah/xataface/branches{/branch}","tags_url":"https://api.github.com/repos/shannah/xataface/tags","blobs_url":"https://api.github.com/repos/shannah/xataface/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shannah/xataface/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shannah/xataface/git/refs{/sha}","trees_url":"https://api.github.com/repos/shannah/xataface/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shannah/xataface/statuses/{sha}","languages_url":"https://api.github.com/repos/shannah/xataface/languages","stargazers_url":"https://api.github.com/repos/shannah/xataface/stargazers","contributors_url":"https://api.github.com/repos/shannah/xataface/contributors","subscribers_url":"https://api.github.com/repos/shannah/xataface/subscribers","subscription_url":"https://api.github.com/repos/shannah/xataface/subscription","commits_url":"https://api.github.com/repos/shannah/xataface/commits{/sha}","git_commits_url":"https://api.github.com/repos/shannah/xataface/git/commits{/sha}","comments_url":"https://api.github.com/repos/shannah/xataface/comments{/number}","issue_comment_url":"https://api.github.com/repos/shannah/xataface/issues/comments/{number}","contents_url":"https://api.github.com/repos/shannah/xataface/contents/{+path}","compare_url":"https://api.github.com/repos/shannah/xataface/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shannah/xataface/merges","archive_url":"https://api.github.com/repos/shannah/xataface/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shannah/xataface/downloads","issues_url":"https://api.github.com/repos/shannah/xataface/issues{/number}","pulls_url":"https://api.github.com/repos/shannah/xataface/pulls{/number}","milestones_url":"https://api.github.com/repos/shannah/xataface/milestones{/number}","notifications_url":"https://api.github.com/repos/shannah/xataface/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shannah/xataface/labels{/name}","releases_url":"https://api.github.com/repos/shannah/xataface/releases{/id}","created_at":"2013-06-28T16:26:57Z","updated_at":"2015-02-09T13:07:11Z","pushed_at":"2015-02-04T01:36:58Z","git_url":"git://github.com/shannah/xataface.git","ssh_url":"git@github.com:shannah/xataface.git","clone_url":"https://github.com/shannah/xataface.git","svn_url":"https://github.com/shannah/xataface","homepage":"http://xataface.com","size":19579,"stargazers_count":26,"watchers_count":26,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":31,"forks":9,"open_issues":31,"watchers":26,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/shannah/xataface/pulls/49"},"html":{"href":"https://github.com/shannah/xataface/pull/49"},"issue":{"href":"https://api.github.com/repos/shannah/xataface/issues/49"},"comments":{"href":"https://api.github.com/repos/shannah/xataface/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/shannah/xataface/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/shannah/xataface/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/shannah/xataface/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/shannah/xataface/statuses/c720f951449f7c523c3342f72b63128236947c74"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":47,"deletions":48,"changed_files":1}}