{"action":"opened","number":866,"pull_request":{"url":"https://api.github.com/repos/esvit/ng-table/pulls/866","id":74076658,"html_url":"https://github.com/esvit/ng-table/pull/866","diff_url":"https://github.com/esvit/ng-table/pull/866.diff","patch_url":"https://github.com/esvit/ng-table/pull/866.patch","issue_url":"https://api.github.com/repos/esvit/ng-table/issues/866","number":866,"state":"open","locked":false,"title":"Fixed bug on reload with empty page","user":{"login":"aheys","id":6807254,"avatar_url":"https://avatars.githubusercontent.com/u/6807254?v=3","gravatar_id":"","url":"https://api.github.com/users/aheys","html_url":"https://github.com/aheys","followers_url":"https://api.github.com/users/aheys/followers","following_url":"https://api.github.com/users/aheys/following{/other_user}","gists_url":"https://api.github.com/users/aheys/gists{/gist_id}","starred_url":"https://api.github.com/users/aheys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aheys/subscriptions","organizations_url":"https://api.github.com/users/aheys/orgs","repos_url":"https://api.github.com/users/aheys/repos","events_url":"https://api.github.com/users/aheys/events{/privacy}","received_events_url":"https://api.github.com/users/aheys/received_events","type":"User","site_admin":false},"body":"When calling .reload(), the pagination is updated according to the updated data. If the current page is empty (i.e. all rows are deleted) then the page is left empty with no elements. This fix will update the current page to the one prior.","created_at":"2016-06-16T13:03:03Z","updated_at":"2016-06-16T13:03:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/esvit/ng-table/pulls/866/commits","review_comments_url":"https://api.github.com/repos/esvit/ng-table/pulls/866/comments","review_comment_url":"https://api.github.com/repos/esvit/ng-table/pulls/comments{/number}","comments_url":"https://api.github.com/repos/esvit/ng-table/issues/866/comments","statuses_url":"https://api.github.com/repos/esvit/ng-table/statuses/7bf203bc12bd45857996dcefa7c4907d973debbe","head":{"label":"aheys:pagination_reload_fix","ref":"pagination_reload_fix","sha":"7bf203bc12bd45857996dcefa7c4907d973debbe","user":{"login":"aheys","id":6807254,"avatar_url":"https://avatars.githubusercontent.com/u/6807254?v=3","gravatar_id":"","url":"https://api.github.com/users/aheys","html_url":"https://github.com/aheys","followers_url":"https://api.github.com/users/aheys/followers","following_url":"https://api.github.com/users/aheys/following{/other_user}","gists_url":"https://api.github.com/users/aheys/gists{/gist_id}","starred_url":"https://api.github.com/users/aheys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aheys/subscriptions","organizations_url":"https://api.github.com/users/aheys/orgs","repos_url":"https://api.github.com/users/aheys/repos","events_url":"https://api.github.com/users/aheys/events{/privacy}","received_events_url":"https://api.github.com/users/aheys/received_events","type":"User","site_admin":false},"repo":{"id":61232092,"name":"ng-table","full_name":"aheys/ng-table","owner":{"login":"aheys","id":6807254,"avatar_url":"https://avatars.githubusercontent.com/u/6807254?v=3","gravatar_id":"","url":"https://api.github.com/users/aheys","html_url":"https://github.com/aheys","followers_url":"https://api.github.com/users/aheys/followers","following_url":"https://api.github.com/users/aheys/following{/other_user}","gists_url":"https://api.github.com/users/aheys/gists{/gist_id}","starred_url":"https://api.github.com/users/aheys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aheys/subscriptions","organizations_url":"https://api.github.com/users/aheys/orgs","repos_url":"https://api.github.com/users/aheys/repos","events_url":"https://api.github.com/users/aheys/events{/privacy}","received_events_url":"https://api.github.com/users/aheys/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aheys/ng-table","description":"Simple table with sorting and filtering on AngularJS","fork":true,"url":"https://api.github.com/repos/aheys/ng-table","forks_url":"https://api.github.com/repos/aheys/ng-table/forks","keys_url":"https://api.github.com/repos/aheys/ng-table/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aheys/ng-table/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aheys/ng-table/teams","hooks_url":"https://api.github.com/repos/aheys/ng-table/hooks","issue_events_url":"https://api.github.com/repos/aheys/ng-table/issues/events{/number}","events_url":"https://api.github.com/repos/aheys/ng-table/events","assignees_url":"https://api.github.com/repos/aheys/ng-table/assignees{/user}","branches_url":"https://api.github.com/repos/aheys/ng-table/branches{/branch}","tags_url":"https://api.github.com/repos/aheys/ng-table/tags","blobs_url":"https://api.github.com/repos/aheys/ng-table/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aheys/ng-table/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aheys/ng-table/git/refs{/sha}","trees_url":"https://api.github.com/repos/aheys/ng-table/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aheys/ng-table/statuses/{sha}","languages_url":"https://api.github.com/repos/aheys/ng-table/languages","stargazers_url":"https://api.github.com/repos/aheys/ng-table/stargazers","contributors_url":"https://api.github.com/repos/aheys/ng-table/contributors","subscribers_url":"https://api.github.com/repos/aheys/ng-table/subscribers","subscription_url":"https://api.github.com/repos/aheys/ng-table/subscription","commits_url":"https://api.github.com/repos/aheys/ng-table/commits{/sha}","git_commits_url":"https://api.github.com/repos/aheys/ng-table/git/commits{/sha}","comments_url":"https://api.github.com/repos/aheys/ng-table/comments{/number}","issue_comment_url":"https://api.github.com/repos/aheys/ng-table/issues/comments{/number}","contents_url":"https://api.github.com/repos/aheys/ng-table/contents/{+path}","compare_url":"https://api.github.com/repos/aheys/ng-table/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aheys/ng-table/merges","archive_url":"https://api.github.com/repos/aheys/ng-table/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aheys/ng-table/downloads","issues_url":"https://api.github.com/repos/aheys/ng-table/issues{/number}","pulls_url":"https://api.github.com/repos/aheys/ng-table/pulls{/number}","milestones_url":"https://api.github.com/repos/aheys/ng-table/milestones{/number}","notifications_url":"https://api.github.com/repos/aheys/ng-table/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aheys/ng-table/labels{/name}","releases_url":"https://api.github.com/repos/aheys/ng-table/releases{/id}","deployments_url":"https://api.github.com/repos/aheys/ng-table/deployments","created_at":"2016-06-15T18:44:07Z","updated_at":"2016-06-15T18:44:09Z","pushed_at":"2016-06-16T12:39:57Z","git_url":"git://github.com/aheys/ng-table.git","ssh_url":"git@github.com:aheys/ng-table.git","clone_url":"https://github.com/aheys/ng-table.git","svn_url":"https://github.com/aheys/ng-table","homepage":"http://ng-table.com/","size":3842,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"esvit:master","ref":"master","sha":"540d5c1052bf1b5d2b92c0d12331bc3dd2234c65","user":{"login":"esvit","id":1222467,"avatar_url":"https://avatars.githubusercontent.com/u/1222467?v=3","gravatar_id":"","url":"https://api.github.com/users/esvit","html_url":"https://github.com/esvit","followers_url":"https://api.github.com/users/esvit/followers","following_url":"https://api.github.com/users/esvit/following{/other_user}","gists_url":"https://api.github.com/users/esvit/gists{/gist_id}","starred_url":"https://api.github.com/users/esvit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esvit/subscriptions","organizations_url":"https://api.github.com/users/esvit/orgs","repos_url":"https://api.github.com/users/esvit/repos","events_url":"https://api.github.com/users/esvit/events{/privacy}","received_events_url":"https://api.github.com/users/esvit/received_events","type":"User","site_admin":false},"repo":{"id":9542455,"name":"ng-table","full_name":"esvit/ng-table","owner":{"login":"esvit","id":1222467,"avatar_url":"https://avatars.githubusercontent.com/u/1222467?v=3","gravatar_id":"","url":"https://api.github.com/users/esvit","html_url":"https://github.com/esvit","followers_url":"https://api.github.com/users/esvit/followers","following_url":"https://api.github.com/users/esvit/following{/other_user}","gists_url":"https://api.github.com/users/esvit/gists{/gist_id}","starred_url":"https://api.github.com/users/esvit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esvit/subscriptions","organizations_url":"https://api.github.com/users/esvit/orgs","repos_url":"https://api.github.com/users/esvit/repos","events_url":"https://api.github.com/users/esvit/events{/privacy}","received_events_url":"https://api.github.com/users/esvit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/esvit/ng-table","description":"Simple table with sorting and filtering on AngularJS","fork":false,"url":"https://api.github.com/repos/esvit/ng-table","forks_url":"https://api.github.com/repos/esvit/ng-table/forks","keys_url":"https://api.github.com/repos/esvit/ng-table/keys{/key_id}","collaborators_url":"https://api.github.com/repos/esvit/ng-table/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/esvit/ng-table/teams","hooks_url":"https://api.github.com/repos/esvit/ng-table/hooks","issue_events_url":"https://api.github.com/repos/esvit/ng-table/issues/events{/number}","events_url":"https://api.github.com/repos/esvit/ng-table/events","assignees_url":"https://api.github.com/repos/esvit/ng-table/assignees{/user}","branches_url":"https://api.github.com/repos/esvit/ng-table/branches{/branch}","tags_url":"https://api.github.com/repos/esvit/ng-table/tags","blobs_url":"https://api.github.com/repos/esvit/ng-table/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/esvit/ng-table/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/esvit/ng-table/git/refs{/sha}","trees_url":"https://api.github.com/repos/esvit/ng-table/git/trees{/sha}","statuses_url":"https://api.github.com/repos/esvit/ng-table/statuses/{sha}","languages_url":"https://api.github.com/repos/esvit/ng-table/languages","stargazers_url":"https://api.github.com/repos/esvit/ng-table/stargazers","contributors_url":"https://api.github.com/repos/esvit/ng-table/contributors","subscribers_url":"https://api.github.com/repos/esvit/ng-table/subscribers","subscription_url":"https://api.github.com/repos/esvit/ng-table/subscription","commits_url":"https://api.github.com/repos/esvit/ng-table/commits{/sha}","git_commits_url":"https://api.github.com/repos/esvit/ng-table/git/commits{/sha}","comments_url":"https://api.github.com/repos/esvit/ng-table/comments{/number}","issue_comment_url":"https://api.github.com/repos/esvit/ng-table/issues/comments{/number}","contents_url":"https://api.github.com/repos/esvit/ng-table/contents/{+path}","compare_url":"https://api.github.com/repos/esvit/ng-table/compare/{base}...{head}","merges_url":"https://api.github.com/repos/esvit/ng-table/merges","archive_url":"https://api.github.com/repos/esvit/ng-table/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/esvit/ng-table/downloads","issues_url":"https://api.github.com/repos/esvit/ng-table/issues{/number}","pulls_url":"https://api.github.com/repos/esvit/ng-table/pulls{/number}","milestones_url":"https://api.github.com/repos/esvit/ng-table/milestones{/number}","notifications_url":"https://api.github.com/repos/esvit/ng-table/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/esvit/ng-table/labels{/name}","releases_url":"https://api.github.com/repos/esvit/ng-table/releases{/id}","deployments_url":"https://api.github.com/repos/esvit/ng-table/deployments","created_at":"2013-04-19T09:46:25Z","updated_at":"2016-06-16T12:59:22Z","pushed_at":"2016-06-16T13:03:03Z","git_url":"git://github.com/esvit/ng-table.git","ssh_url":"git@github.com:esvit/ng-table.git","clone_url":"https://github.com/esvit/ng-table.git","svn_url":"https://github.com/esvit/ng-table","homepage":"http://ng-table.com/","size":4558,"stargazers_count":2364,"watchers_count":2364,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":809,"mirror_url":null,"open_issues_count":263,"forks":809,"open_issues":263,"watchers":2364,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/esvit/ng-table/pulls/866"},"html":{"href":"https://github.com/esvit/ng-table/pull/866"},"issue":{"href":"https://api.github.com/repos/esvit/ng-table/issues/866"},"comments":{"href":"https://api.github.com/repos/esvit/ng-table/issues/866/comments"},"review_comments":{"href":"https://api.github.com/repos/esvit/ng-table/pulls/866/comments"},"review_comment":{"href":"https://api.github.com/repos/esvit/ng-table/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/esvit/ng-table/pulls/866/commits"},"statuses":{"href":"https://api.github.com/repos/esvit/ng-table/statuses/7bf203bc12bd45857996dcefa7c4907d973debbe"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":10,"deletions":6,"changed_files":4}}
{"actor":{"display_login":"aheys"}}