{"action":"created","comment":{"url":"https://api.github.com/repos/dodoas/lodo/pulls/comments/60191658","id":60191658,"diff_hunk":"@@ -1043,6 +1043,19 @@ elseif($_lib['input']->getProperty('action_altindato_update')) {\n     $_lib['db']->db_query($query_update_altinn_date);\n   }\n }\n+elseif($_lib['input']->getProperty('action_salary_update_altinn_fields')) {\n+  $tables['salary'] = 'SalaryID';\n+  $args['salary_ShiftType_' . $SalaryID]        = $_POST['salary_ShiftType_' . $SalaryID];\n+  $args['salary_WorkTimeScheme_' . $SalaryID]   = $_POST['salary_WorkTimeScheme_' . $SalaryID];\n+  $args['salary_TypeOfEmployment_' . $SalaryID] = $_POST['salary_TypeOfEmployment_' . $SalaryID];\n+  $args['salary_OccupationID_' . $SalaryID]     = $_POST['salary_OccupationID_' . $SalaryID];\n+  $args['salary_SubcompanyID_' . $SalaryID]     = $_POST['salary_SubcompanyID_' . $SalaryID];\n+  // Uncomment if we want to save when and who updated the salary","path":"modules/salary/view/record.inc","position":11,"original_position":11,"commit_id":"c53901199cee7fef8b801166d7435c845768cf90","original_commit_id":"c53901199cee7fef8b801166d7435c845768cf90","user":{"login":"stoivo","id":3492040,"avatar_url":"https://avatars.githubusercontent.com/u/3492040?v=3","gravatar_id":"","url":"https://api.github.com/users/stoivo","html_url":"https://github.com/stoivo","followers_url":"https://api.github.com/users/stoivo/followers","following_url":"https://api.github.com/users/stoivo/following{/other_user}","gists_url":"https://api.github.com/users/stoivo/gists{/gist_id}","starred_url":"https://api.github.com/users/stoivo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stoivo/subscriptions","organizations_url":"https://api.github.com/users/stoivo/orgs","repos_url":"https://api.github.com/users/stoivo/repos","events_url":"https://api.github.com/users/stoivo/events{/privacy}","received_events_url":"https://api.github.com/users/stoivo/received_events","type":"User","site_admin":false},"body":"EDIT:\r\nNot important, need bigger changes.","created_at":"2016-04-19T08:36:24Z","updated_at":"2016-04-19T08:36:24Z","html_url":"https://github.com/dodoas/lodo/pull/130#discussion_r60191658","pull_request_url":"https://api.github.com/repos/dodoas/lodo/pulls/130","_links":{"self":{"href":"https://api.github.com/repos/dodoas/lodo/pulls/comments/60191658"},"html":{"href":"https://github.com/dodoas/lodo/pull/130#discussion_r60191658"},"pull_request":{"href":"https://api.github.com/repos/dodoas/lodo/pulls/130"}}},"pull_request":{"url":"https://api.github.com/repos/dodoas/lodo/pulls/130","id":66135350,"html_url":"https://github.com/dodoas/lodo/pull/130","diff_url":"https://github.com/dodoas/lodo/pull/130.diff","patch_url":"https://github.com/dodoas/lodo/pull/130.patch","issue_url":"https://api.github.com/repos/dodoas/lodo/issues/130","number":130,"state":"open","locked":false,"title":"Allow regular user to update altinn fields on a locked salary","user":{"login":"mladjo2505","id":3684429,"avatar_url":"https://avatars.githubusercontent.com/u/3684429?v=3","gravatar_id":"","url":"https://api.github.com/users/mladjo2505","html_url":"https://github.com/mladjo2505","followers_url":"https://api.github.com/users/mladjo2505/followers","following_url":"https://api.github.com/users/mladjo2505/following{/other_user}","gists_url":"https://api.github.com/users/mladjo2505/gists{/gist_id}","starred_url":"https://api.github.com/users/mladjo2505/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mladjo2505/subscriptions","organizations_url":"https://api.github.com/users/mladjo2505/orgs","repos_url":"https://api.github.com/users/mladjo2505/repos","events_url":"https://api.github.com/users/mladjo2505/events{/privacy}","received_events_url":"https://api.github.com/users/mladjo2505/received_events","type":"User","site_admin":false},"body":"Closes #69\r\nNow a regular user can update altinn fields after the salary is locked.\r\nAfter it is locked a new action button will appear instead of save and it saves only the altinn fields.","created_at":"2016-04-12T10:38:13Z","updated_at":"2016-04-19T08:36:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f4efad9556b69ee8494ffe442eaad66d207dc91f","assignee":{"login":"mladjo2505","id":3684429,"avatar_url":"https://avatars.githubusercontent.com/u/3684429?v=3","gravatar_id":"","url":"https://api.github.com/users/mladjo2505","html_url":"https://github.com/mladjo2505","followers_url":"https://api.github.com/users/mladjo2505/followers","following_url":"https://api.github.com/users/mladjo2505/following{/other_user}","gists_url":"https://api.github.com/users/mladjo2505/gists{/gist_id}","starred_url":"https://api.github.com/users/mladjo2505/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mladjo2505/subscriptions","organizations_url":"https://api.github.com/users/mladjo2505/orgs","repos_url":"https://api.github.com/users/mladjo2505/repos","events_url":"https://api.github.com/users/mladjo2505/events{/privacy}","received_events_url":"https://api.github.com/users/mladjo2505/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/dodoas/lodo/pulls/130/commits","review_comments_url":"https://api.github.com/repos/dodoas/lodo/pulls/130/comments","review_comment_url":"https://api.github.com/repos/dodoas/lodo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dodoas/lodo/issues/130/comments","statuses_url":"https://api.github.com/repos/dodoas/lodo/statuses/c53901199cee7fef8b801166d7435c845768cf90","head":{"label":"dodoas:md/salary_altinn_fields_save","ref":"md/salary_altinn_fields_save","sha":"c53901199cee7fef8b801166d7435c845768cf90","user":{"login":"dodoas","id":2697200,"avatar_url":"https://avatars.githubusercontent.com/u/2697200?v=3","gravatar_id":"","url":"https://api.github.com/users/dodoas","html_url":"https://github.com/dodoas","followers_url":"https://api.github.com/users/dodoas/followers","following_url":"https://api.github.com/users/dodoas/following{/other_user}","gists_url":"https://api.github.com/users/dodoas/gists{/gist_id}","starred_url":"https://api.github.com/users/dodoas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dodoas/subscriptions","organizations_url":"https://api.github.com/users/dodoas/orgs","repos_url":"https://api.github.com/users/dodoas/repos","events_url":"https://api.github.com/users/dodoas/events{/privacy}","received_events_url":"https://api.github.com/users/dodoas/received_events","type":"User","site_admin":false},"repo":{"id":7601637,"name":"lodo","full_name":"dodoas/lodo","owner":{"login":"dodoas","id":2697200,"avatar_url":"https://avatars.githubusercontent.com/u/2697200?v=3","gravatar_id":"","url":"https://api.github.com/users/dodoas","html_url":"https://github.com/dodoas","followers_url":"https://api.github.com/users/dodoas/followers","following_url":"https://api.github.com/users/dodoas/following{/other_user}","gists_url":"https://api.github.com/users/dodoas/gists{/gist_id}","starred_url":"https://api.github.com/users/dodoas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dodoas/subscriptions","organizations_url":"https://api.github.com/users/dodoas/orgs","repos_url":"https://api.github.com/users/dodoas/repos","events_url":"https://api.github.com/users/dodoas/events{/privacy}","received_events_url":"https://api.github.com/users/dodoas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dodoas/lodo","description":"Lodo Regnskap","fork":false,"url":"https://api.github.com/repos/dodoas/lodo","forks_url":"https://api.github.com/repos/dodoas/lodo/forks","keys_url":"https://api.github.com/repos/dodoas/lodo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dodoas/lodo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dodoas/lodo/teams","hooks_url":"https://api.github.com/repos/dodoas/lodo/hooks","issue_events_url":"https://api.github.com/repos/dodoas/lodo/issues/events{/number}","events_url":"https://api.github.com/repos/dodoas/lodo/events","assignees_url":"https://api.github.com/repos/dodoas/lodo/assignees{/user}","branches_url":"https://api.github.com/repos/dodoas/lodo/branches{/branch}","tags_url":"https://api.github.com/repos/dodoas/lodo/tags","blobs_url":"https://api.github.com/repos/dodoas/lodo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dodoas/lodo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dodoas/lodo/git/refs{/sha}","trees_url":"https://api.github.com/repos/dodoas/lodo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dodoas/lodo/statuses/{sha}","languages_url":"https://api.github.com/repos/dodoas/lodo/languages","stargazers_url":"https://api.github.com/repos/dodoas/lodo/stargazers","contributors_url":"https://api.github.com/repos/dodoas/lodo/contributors","subscribers_url":"https://api.github.com/repos/dodoas/lodo/subscribers","subscription_url":"https://api.github.com/repos/dodoas/lodo/subscription","commits_url":"https://api.github.com/repos/dodoas/lodo/commits{/sha}","git_commits_url":"https://api.github.com/repos/dodoas/lodo/git/commits{/sha}","comments_url":"https://api.github.com/repos/dodoas/lodo/comments{/number}","issue_comment_url":"https://api.github.com/repos/dodoas/lodo/issues/comments{/number}","contents_url":"https://api.github.com/repos/dodoas/lodo/contents/{+path}","compare_url":"https://api.github.com/repos/dodoas/lodo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dodoas/lodo/merges","archive_url":"https://api.github.com/repos/dodoas/lodo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dodoas/lodo/downloads","issues_url":"https://api.github.com/repos/dodoas/lodo/issues{/number}","pulls_url":"https://api.github.com/repos/dodoas/lodo/pulls{/number}","milestones_url":"https://api.github.com/repos/dodoas/lodo/milestones{/number}","notifications_url":"https://api.github.com/repos/dodoas/lodo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dodoas/lodo/labels{/name}","releases_url":"https://api.github.com/repos/dodoas/lodo/releases{/id}","deployments_url":"https://api.github.com/repos/dodoas/lodo/deployments","created_at":"2013-01-14T09:31:19Z","updated_at":"2016-01-23T20:36:17Z","pushed_at":"2016-04-19T07:16:54Z","git_url":"git://github.com/dodoas/lodo.git","ssh_url":"git@github.com:dodoas/lodo.git","clone_url":"https://github.com/dodoas/lodo.git","svn_url":"https://github.com/dodoas/lodo","homepage":"","size":9502,"stargazers_count":3,"watchers_count":3,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":16,"forks":1,"open_issues":16,"watchers":3,"default_branch":"master"}},"base":{"label":"dodoas:master","ref":"master","sha":"6b5316a7f1e9ed3c64915cb214a7f0f1a331cb20","user":{"login":"dodoas","id":2697200,"avatar_url":"https://avatars.githubusercontent.com/u/2697200?v=3","gravatar_id":"","url":"https://api.github.com/users/dodoas","html_url":"https://github.com/dodoas","followers_url":"https://api.github.com/users/dodoas/followers","following_url":"https://api.github.com/users/dodoas/following{/other_user}","gists_url":"https://api.github.com/users/dodoas/gists{/gist_id}","starred_url":"https://api.github.com/users/dodoas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dodoas/subscriptions","organizations_url":"https://api.github.com/users/dodoas/orgs","repos_url":"https://api.github.com/users/dodoas/repos","events_url":"https://api.github.com/users/dodoas/events{/privacy}","received_events_url":"https://api.github.com/users/dodoas/received_events","type":"User","site_admin":false},"repo":{"id":7601637,"name":"lodo","full_name":"dodoas/lodo","owner":{"login":"dodoas","id":2697200,"avatar_url":"https://avatars.githubusercontent.com/u/2697200?v=3","gravatar_id":"","url":"https://api.github.com/users/dodoas","html_url":"https://github.com/dodoas","followers_url":"https://api.github.com/users/dodoas/followers","following_url":"https://api.github.com/users/dodoas/following{/other_user}","gists_url":"https://api.github.com/users/dodoas/gists{/gist_id}","starred_url":"https://api.github.com/users/dodoas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dodoas/subscriptions","organizations_url":"https://api.github.com/users/dodoas/orgs","repos_url":"https://api.github.com/users/dodoas/repos","events_url":"https://api.github.com/users/dodoas/events{/privacy}","received_events_url":"https://api.github.com/users/dodoas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dodoas/lodo","description":"Lodo Regnskap","fork":false,"url":"https://api.github.com/repos/dodoas/lodo","forks_url":"https://api.github.com/repos/dodoas/lodo/forks","keys_url":"https://api.github.com/repos/dodoas/lodo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dodoas/lodo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dodoas/lodo/teams","hooks_url":"https://api.github.com/repos/dodoas/lodo/hooks","issue_events_url":"https://api.github.com/repos/dodoas/lodo/issues/events{/number}","events_url":"https://api.github.com/repos/dodoas/lodo/events","assignees_url":"https://api.github.com/repos/dodoas/lodo/assignees{/user}","branches_url":"https://api.github.com/repos/dodoas/lodo/branches{/branch}","tags_url":"https://api.github.com/repos/dodoas/lodo/tags","blobs_url":"https://api.github.com/repos/dodoas/lodo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dodoas/lodo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dodoas/lodo/git/refs{/sha}","trees_url":"https://api.github.com/repos/dodoas/lodo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dodoas/lodo/statuses/{sha}","languages_url":"https://api.github.com/repos/dodoas/lodo/languages","stargazers_url":"https://api.github.com/repos/dodoas/lodo/stargazers","contributors_url":"https://api.github.com/repos/dodoas/lodo/contributors","subscribers_url":"https://api.github.com/repos/dodoas/lodo/subscribers","subscription_url":"https://api.github.com/repos/dodoas/lodo/subscription","commits_url":"https://api.github.com/repos/dodoas/lodo/commits{/sha}","git_commits_url":"https://api.github.com/repos/dodoas/lodo/git/commits{/sha}","comments_url":"https://api.github.com/repos/dodoas/lodo/comments{/number}","issue_comment_url":"https://api.github.com/repos/dodoas/lodo/issues/comments{/number}","contents_url":"https://api.github.com/repos/dodoas/lodo/contents/{+path}","compare_url":"https://api.github.com/repos/dodoas/lodo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dodoas/lodo/merges","archive_url":"https://api.github.com/repos/dodoas/lodo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dodoas/lodo/downloads","issues_url":"https://api.github.com/repos/dodoas/lodo/issues{/number}","pulls_url":"https://api.github.com/repos/dodoas/lodo/pulls{/number}","milestones_url":"https://api.github.com/repos/dodoas/lodo/milestones{/number}","notifications_url":"https://api.github.com/repos/dodoas/lodo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dodoas/lodo/labels{/name}","releases_url":"https://api.github.com/repos/dodoas/lodo/releases{/id}","deployments_url":"https://api.github.com/repos/dodoas/lodo/deployments","created_at":"2013-01-14T09:31:19Z","updated_at":"2016-01-23T20:36:17Z","pushed_at":"2016-04-19T07:16:54Z","git_url":"git://github.com/dodoas/lodo.git","ssh_url":"git@github.com:dodoas/lodo.git","clone_url":"https://github.com/dodoas/lodo.git","svn_url":"https://github.com/dodoas/lodo","homepage":"","size":9502,"stargazers_count":3,"watchers_count":3,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":16,"forks":1,"open_issues":16,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dodoas/lodo/pulls/130"},"html":{"href":"https://github.com/dodoas/lodo/pull/130"},"issue":{"href":"https://api.github.com/repos/dodoas/lodo/issues/130"},"comments":{"href":"https://api.github.com/repos/dodoas/lodo/issues/130/comments"},"review_comments":{"href":"https://api.github.com/repos/dodoas/lodo/pulls/130/comments"},"review_comment":{"href":"https://api.github.com/repos/dodoas/lodo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dodoas/lodo/pulls/130/commits"},"statuses":{"href":"https://api.github.com/repos/dodoas/lodo/statuses/c53901199cee7fef8b801166d7435c845768cf90"}}}}