{"action":"created","comment":{"url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/pulls/comments/124200248","pull_request_review_id":46467174,"id":124200248,"diff_hunk":"@@ -107,7 +107,45 @@ public function actionEditLoads() {\n     \t$lecturer = CStaffManager::getPerson(CRequest::getInt(\"kadri_id\"));\n     \t$year = CTaxonomyManager::getYear(CRequest::getInt(\"year_id\"));\n     \t\n-    \t$loads = CStudyLoadService::getStudyLoadsByYear($lecturer, $year);\n+    \t$loadTypes = array();\n+    \t$base = true;\n+    \tif (CRequest::getInt(\"base\") == 0) {\n+    \t\t$base = false;\n+    \t}\n+    \t$additional = true;\n+    \tif (CRequest::getInt(\"additional\") == 0) {\n+    \t\t$additional = false;\n+    \t}\n+    \t$premium = true;\n+    \tif (CRequest::getInt(\"premium\") == 0) {\n+    \t\t$premium = false;\n+    \t}\n+    \t$byTime = true;\n+    \tif (CRequest::getInt(\"byTime\") == 0) {\n+    \t\t$byTime = false;\n+    \t}\n+    \t\n+    \tif ($base) {","path":"_core/_controllers/_study_load/CStudyLoadController.class.php","position":32,"original_position":32,"commit_id":"e7a7d81410c44bcabe27ac436c993bc650463378","original_commit_id":"57a31d3b5db0ac328a11595d6ec3ba4a665b4d02","user":{"login":"shamidanow","id":9052480,"avatar_url":"https://avatars1.githubusercontent.com/u/9052480?v=3","gravatar_id":"","url":"https://api.github.com/users/shamidanow","html_url":"https://github.com/shamidanow","followers_url":"https://api.github.com/users/shamidanow/followers","following_url":"https://api.github.com/users/shamidanow/following{/other_user}","gists_url":"https://api.github.com/users/shamidanow/gists{/gist_id}","starred_url":"https://api.github.com/users/shamidanow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shamidanow/subscriptions","organizations_url":"https://api.github.com/users/shamidanow/orgs","repos_url":"https://api.github.com/users/shamidanow/repos","events_url":"https://api.github.com/users/shamidanow/events{/privacy}","received_events_url":"https://api.github.com/users/shamidanow/received_events","type":"User","site_admin":false},"body":"В 113 строке устанавливается $base = false, а здесь проверка на true. Тогда нужно будет сначала заполнить весь массив, а потом удалять из него значения? Как сейчас не проще?","created_at":"2017-06-27T07:48:02Z","updated_at":"2017-06-27T07:48:02Z","html_url":"https://github.com/ASUPortal/ASUPortalPHP/pull/287#discussion_r124200248","pull_request_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/pulls/287","_links":{"self":{"href":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/pulls/comments/124200248"},"html":{"href":"https://github.com/ASUPortal/ASUPortalPHP/pull/287#discussion_r124200248"},"pull_request":{"href":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/pulls/287"}}},"pull_request":{"url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/pulls/287","id":127489030,"html_url":"https://github.com/ASUPortal/ASUPortalPHP/pull/287","diff_url":"https://github.com/ASUPortal/ASUPortalPHP/pull/287.diff","patch_url":"https://github.com/ASUPortal/ASUPortalPHP/pull/287.patch","issue_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/issues/287","number":287,"state":"open","locked":false,"title":"Копирование работ по нагрузке и фильтры","user":{"login":"shamidanow","id":9052480,"avatar_url":"https://avatars1.githubusercontent.com/u/9052480?v=3","gravatar_id":"","url":"https://api.github.com/users/shamidanow","html_url":"https://github.com/shamidanow","followers_url":"https://api.github.com/users/shamidanow/followers","following_url":"https://api.github.com/users/shamidanow/following{/other_user}","gists_url":"https://api.github.com/users/shamidanow/gists{/gist_id}","starred_url":"https://api.github.com/users/shamidanow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shamidanow/subscriptions","organizations_url":"https://api.github.com/users/shamidanow/orgs","repos_url":"https://api.github.com/users/shamidanow/repos","events_url":"https://api.github.com/users/shamidanow/events{/privacy}","received_events_url":"https://api.github.com/users/shamidanow/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-06-26T14:51:39Z","updated_at":"2017-06-27T07:48:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2ddec325e7d68257487c16e786fcb155e3d9ee42","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/pulls/287/commits","review_comments_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/pulls/287/comments","review_comment_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/issues/287/comments","statuses_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/statuses/e7a7d81410c44bcabe27ac436c993bc650463378","head":{"label":"shamidanow:new_dev","ref":"new_dev","sha":"e7a7d81410c44bcabe27ac436c993bc650463378","user":{"login":"shamidanow","id":9052480,"avatar_url":"https://avatars1.githubusercontent.com/u/9052480?v=3","gravatar_id":"","url":"https://api.github.com/users/shamidanow","html_url":"https://github.com/shamidanow","followers_url":"https://api.github.com/users/shamidanow/followers","following_url":"https://api.github.com/users/shamidanow/following{/other_user}","gists_url":"https://api.github.com/users/shamidanow/gists{/gist_id}","starred_url":"https://api.github.com/users/shamidanow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shamidanow/subscriptions","organizations_url":"https://api.github.com/users/shamidanow/orgs","repos_url":"https://api.github.com/users/shamidanow/repos","events_url":"https://api.github.com/users/shamidanow/events{/privacy}","received_events_url":"https://api.github.com/users/shamidanow/received_events","type":"User","site_admin":false},"repo":{"id":25765758,"name":"ASUPortalPHP","full_name":"shamidanow/ASUPortalPHP","owner":{"login":"shamidanow","id":9052480,"avatar_url":"https://avatars1.githubusercontent.com/u/9052480?v=3","gravatar_id":"","url":"https://api.github.com/users/shamidanow","html_url":"https://github.com/shamidanow","followers_url":"https://api.github.com/users/shamidanow/followers","following_url":"https://api.github.com/users/shamidanow/following{/other_user}","gists_url":"https://api.github.com/users/shamidanow/gists{/gist_id}","starred_url":"https://api.github.com/users/shamidanow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shamidanow/subscriptions","organizations_url":"https://api.github.com/users/shamidanow/orgs","repos_url":"https://api.github.com/users/shamidanow/repos","events_url":"https://api.github.com/users/shamidanow/events{/privacy}","received_events_url":"https://api.github.com/users/shamidanow/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shamidanow/ASUPortalPHP","description":null,"fork":true,"url":"https://api.github.com/repos/shamidanow/ASUPortalPHP","forks_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/forks","keys_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/teams","hooks_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/hooks","issue_events_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/issues/events{/number}","events_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/events","assignees_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/assignees{/user}","branches_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/branches{/branch}","tags_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/tags","blobs_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/git/refs{/sha}","trees_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/statuses/{sha}","languages_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/languages","stargazers_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/stargazers","contributors_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/contributors","subscribers_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/subscribers","subscription_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/subscription","commits_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/commits{/sha}","git_commits_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/git/commits{/sha}","comments_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/comments{/number}","issue_comment_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/issues/comments{/number}","contents_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/contents/{+path}","compare_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/merges","archive_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/downloads","issues_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/issues{/number}","pulls_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/pulls{/number}","milestones_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/milestones{/number}","notifications_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/labels{/name}","releases_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/releases{/id}","deployments_url":"https://api.github.com/repos/shamidanow/ASUPortalPHP/deployments","created_at":"2014-10-26T09:43:08Z","updated_at":"2016-10-20T07:38:55Z","pushed_at":"2017-06-27T07:44:58Z","git_url":"git://github.com/shamidanow/ASUPortalPHP.git","ssh_url":"git@github.com:shamidanow/ASUPortalPHP.git","clone_url":"https://github.com/shamidanow/ASUPortalPHP.git","svn_url":"https://github.com/shamidanow/ASUPortalPHP","homepage":null,"size":118605,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"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":"new_dev"}},"base":{"label":"ASUPortal:master","ref":"master","sha":"c3c0e31c51ac3cfec84ea264523104af837babdb","user":{"login":"ASUPortal","id":8296512,"avatar_url":"https://avatars2.githubusercontent.com/u/8296512?v=3","gravatar_id":"","url":"https://api.github.com/users/ASUPortal","html_url":"https://github.com/ASUPortal","followers_url":"https://api.github.com/users/ASUPortal/followers","following_url":"https://api.github.com/users/ASUPortal/following{/other_user}","gists_url":"https://api.github.com/users/ASUPortal/gists{/gist_id}","starred_url":"https://api.github.com/users/ASUPortal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ASUPortal/subscriptions","organizations_url":"https://api.github.com/users/ASUPortal/orgs","repos_url":"https://api.github.com/users/ASUPortal/repos","events_url":"https://api.github.com/users/ASUPortal/events{/privacy}","received_events_url":"https://api.github.com/users/ASUPortal/received_events","type":"User","site_admin":false},"repo":{"id":8646816,"name":"ASUPortalPHP","full_name":"ASUPortal/ASUPortalPHP","owner":{"login":"ASUPortal","id":8296512,"avatar_url":"https://avatars2.githubusercontent.com/u/8296512?v=3","gravatar_id":"","url":"https://api.github.com/users/ASUPortal","html_url":"https://github.com/ASUPortal","followers_url":"https://api.github.com/users/ASUPortal/followers","following_url":"https://api.github.com/users/ASUPortal/following{/other_user}","gists_url":"https://api.github.com/users/ASUPortal/gists{/gist_id}","starred_url":"https://api.github.com/users/ASUPortal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ASUPortal/subscriptions","organizations_url":"https://api.github.com/users/ASUPortal/orgs","repos_url":"https://api.github.com/users/ASUPortal/repos","events_url":"https://api.github.com/users/ASUPortal/events{/privacy}","received_events_url":"https://api.github.com/users/ASUPortal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ASUPortal/ASUPortalPHP","description":null,"fork":false,"url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP","forks_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/forks","keys_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/teams","hooks_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/hooks","issue_events_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/issues/events{/number}","events_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/events","assignees_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/assignees{/user}","branches_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/branches{/branch}","tags_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/tags","blobs_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/git/refs{/sha}","trees_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/statuses/{sha}","languages_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/languages","stargazers_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/stargazers","contributors_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/contributors","subscribers_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/subscribers","subscription_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/subscription","commits_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/commits{/sha}","git_commits_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/git/commits{/sha}","comments_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/comments{/number}","issue_comment_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/issues/comments{/number}","contents_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/contents/{+path}","compare_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/merges","archive_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/downloads","issues_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/issues{/number}","pulls_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/pulls{/number}","milestones_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/milestones{/number}","notifications_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/labels{/name}","releases_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/releases{/id}","deployments_url":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/deployments","created_at":"2013-03-08T08:26:07Z","updated_at":"2016-10-23T17:11:03Z","pushed_at":"2017-06-27T07:44:59Z","git_url":"git://github.com/ASUPortal/ASUPortalPHP.git","ssh_url":"git@github.com:ASUPortal/ASUPortalPHP.git","clone_url":"https://github.com/ASUPortal/ASUPortalPHP.git","svn_url":"https://github.com/ASUPortal/ASUPortalPHP","homepage":"","size":118544,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":11,"forks":9,"open_issues":11,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/pulls/287"},"html":{"href":"https://github.com/ASUPortal/ASUPortalPHP/pull/287"},"issue":{"href":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/issues/287"},"comments":{"href":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/issues/287/comments"},"review_comments":{"href":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/pulls/287/comments"},"review_comment":{"href":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/pulls/287/commits"},"statuses":{"href":"https://api.github.com/repos/ASUPortal/ASUPortalPHP/statuses/e7a7d81410c44bcabe27ac436c993bc650463378"}}}}
{"actor":{"display_login":"shamidanow"}}