{"action":"created","comment":{"url":"https://api.github.com/repos/glpi-project/glpi/pulls/comments/96199952","pull_request_review_id":16775437,"id":96199952,"diff_hunk":"@@ -881,6 +881,25 @@ static function showMassiveActionsSubForm(MassiveAction $ma) {\n                   $values = $ma->POST['additionalvalues'];\n                }\n                $values[$search[\"field\"]] = '';\n+               if( $fieldname == 'itilcategories_id' ){\n+                  $condition='';\n+                  switch( $item->getType() ) {\n+                     case 'Ticket':\n+                        $condition = '`is_incident` = 1 AND `is_request` = 1' ;\n+                        break ;\n+                     case 'Problem':\n+                        $condition = '`is_problem` = 1' ;\n+                        break ;\n+                     case 'Change':\n+                        $condition = '`is_change` = 1' ;\n+                        break ;\n+                  }\n+                  if( isset( $search['condition'] ) ){\n+                     $search['condition'] .= ' AND '.$condition ;\n+                  } else {\n+                     $search['condition'] = $condition ;\n+                  }","path":"inc/massiveaction.class.php","position":21,"original_position":21,"commit_id":"2671bf6ad1c03908403b9b67de34efdbcd661f4a","original_commit_id":"2671bf6ad1c03908403b9b67de34efdbcd661f4a","user":{"login":"tomolimo","id":7569958,"avatar_url":"https://avatars.githubusercontent.com/u/7569958?v=3","gravatar_id":"","url":"https://api.github.com/users/tomolimo","html_url":"https://github.com/tomolimo","followers_url":"https://api.github.com/users/tomolimo/followers","following_url":"https://api.github.com/users/tomolimo/following{/other_user}","gists_url":"https://api.github.com/users/tomolimo/gists{/gist_id}","starred_url":"https://api.github.com/users/tomolimo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomolimo/subscriptions","organizations_url":"https://api.github.com/users/tomolimo/orgs","repos_url":"https://api.github.com/users/tomolimo/repos","events_url":"https://api.github.com/users/tomolimo/events{/privacy}","received_events_url":"https://api.github.com/users/tomolimo/received_events","type":"User","site_admin":false},"body":"Not possible to set it into the getSearchOptions, as this is also used for other dropdowns (for exemple: when you want to search for any itilcategories).","created_at":"2017-01-16T10:32:27Z","updated_at":"2017-01-16T10:32:27Z","html_url":"https://github.com/glpi-project/glpi/pull/1617#discussion_r96199952","pull_request_url":"https://api.github.com/repos/glpi-project/glpi/pulls/1617","_links":{"self":{"href":"https://api.github.com/repos/glpi-project/glpi/pulls/comments/96199952"},"html":{"href":"https://github.com/glpi-project/glpi/pull/1617#discussion_r96199952"},"pull_request":{"href":"https://api.github.com/repos/glpi-project/glpi/pulls/1617"}}},"pull_request":{"url":"https://api.github.com/repos/glpi-project/glpi/pulls/1617","id":101663186,"html_url":"https://github.com/glpi-project/glpi/pull/1617","diff_url":"https://github.com/glpi-project/glpi/pull/1617.diff","patch_url":"https://github.com/glpi-project/glpi/pull/1617.patch","issue_url":"https://api.github.com/repos/glpi-project/glpi/issues/1617","number":1617,"state":"open","locked":false,"title":"Added tests to set 'condition' to filter out itilcategories which are…","user":{"login":"tomolimo","id":7569958,"avatar_url":"https://avatars.githubusercontent.com/u/7569958?v=3","gravatar_id":"","url":"https://api.github.com/users/tomolimo","html_url":"https://github.com/tomolimo","followers_url":"https://api.github.com/users/tomolimo/followers","following_url":"https://api.github.com/users/tomolimo/following{/other_user}","gists_url":"https://api.github.com/users/tomolimo/gists{/gist_id}","starred_url":"https://api.github.com/users/tomolimo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomolimo/subscriptions","organizations_url":"https://api.github.com/users/tomolimo/orgs","repos_url":"https://api.github.com/users/tomolimo/repos","events_url":"https://api.github.com/users/tomolimo/events{/privacy}","received_events_url":"https://api.github.com/users/tomolimo/received_events","type":"User","site_admin":false},"body":"… not active for current selected items in massive actions\r\n\r\nFor Ticket, Problem and Changes\r\nFixes #1613","created_at":"2017-01-16T10:22:06Z","updated_at":"2017-01-16T10:32:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4414172fd42cf1a006f16a686e1eedfaf2c24698","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/glpi-project/glpi/milestones/13","html_url":"https://github.com/glpi-project/glpi/milestone/13","labels_url":"https://api.github.com/repos/glpi-project/glpi/milestones/13/labels","id":2034620,"number":13,"title":"9.1.2","description":"","creator":{"login":"trasher","id":224733,"avatar_url":"https://avatars.githubusercontent.com/u/224733?v=3","gravatar_id":"","url":"https://api.github.com/users/trasher","html_url":"https://github.com/trasher","followers_url":"https://api.github.com/users/trasher/followers","following_url":"https://api.github.com/users/trasher/following{/other_user}","gists_url":"https://api.github.com/users/trasher/gists{/gist_id}","starred_url":"https://api.github.com/users/trasher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trasher/subscriptions","organizations_url":"https://api.github.com/users/trasher/orgs","repos_url":"https://api.github.com/users/trasher/repos","events_url":"https://api.github.com/users/trasher/events{/privacy}","received_events_url":"https://api.github.com/users/trasher/received_events","type":"User","site_admin":false},"open_issues":35,"closed_issues":68,"state":"open","created_at":"2016-09-28T12:35:14Z","updated_at":"2017-01-16T10:22:06Z","due_on":"2017-01-23T08:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/glpi-project/glpi/pulls/1617/commits","review_comments_url":"https://api.github.com/repos/glpi-project/glpi/pulls/1617/comments","review_comment_url":"https://api.github.com/repos/glpi-project/glpi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/glpi-project/glpi/issues/1617/comments","statuses_url":"https://api.github.com/repos/glpi-project/glpi/statuses/2671bf6ad1c03908403b9b67de34efdbcd661f4a","head":{"label":"tomolimo:#1613","ref":"#1613","sha":"2671bf6ad1c03908403b9b67de34efdbcd661f4a","user":{"login":"tomolimo","id":7569958,"avatar_url":"https://avatars.githubusercontent.com/u/7569958?v=3","gravatar_id":"","url":"https://api.github.com/users/tomolimo","html_url":"https://github.com/tomolimo","followers_url":"https://api.github.com/users/tomolimo/followers","following_url":"https://api.github.com/users/tomolimo/following{/other_user}","gists_url":"https://api.github.com/users/tomolimo/gists{/gist_id}","starred_url":"https://api.github.com/users/tomolimo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomolimo/subscriptions","organizations_url":"https://api.github.com/users/tomolimo/orgs","repos_url":"https://api.github.com/users/tomolimo/repos","events_url":"https://api.github.com/users/tomolimo/events{/privacy}","received_events_url":"https://api.github.com/users/tomolimo/received_events","type":"User","site_admin":false},"repo":{"id":70151384,"name":"glpi","full_name":"tomolimo/glpi","owner":{"login":"tomolimo","id":7569958,"avatar_url":"https://avatars.githubusercontent.com/u/7569958?v=3","gravatar_id":"","url":"https://api.github.com/users/tomolimo","html_url":"https://github.com/tomolimo","followers_url":"https://api.github.com/users/tomolimo/followers","following_url":"https://api.github.com/users/tomolimo/following{/other_user}","gists_url":"https://api.github.com/users/tomolimo/gists{/gist_id}","starred_url":"https://api.github.com/users/tomolimo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomolimo/subscriptions","organizations_url":"https://api.github.com/users/tomolimo/orgs","repos_url":"https://api.github.com/users/tomolimo/repos","events_url":"https://api.github.com/users/tomolimo/events{/privacy}","received_events_url":"https://api.github.com/users/tomolimo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tomolimo/glpi","description":"GLPi stands for Gestionnaire Libre de Parc Informatique is a Free Asset and IT Management Software package, that provides ITIL Service Desk features, licenses tracking and software auditing.","fork":true,"url":"https://api.github.com/repos/tomolimo/glpi","forks_url":"https://api.github.com/repos/tomolimo/glpi/forks","keys_url":"https://api.github.com/repos/tomolimo/glpi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tomolimo/glpi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tomolimo/glpi/teams","hooks_url":"https://api.github.com/repos/tomolimo/glpi/hooks","issue_events_url":"https://api.github.com/repos/tomolimo/glpi/issues/events{/number}","events_url":"https://api.github.com/repos/tomolimo/glpi/events","assignees_url":"https://api.github.com/repos/tomolimo/glpi/assignees{/user}","branches_url":"https://api.github.com/repos/tomolimo/glpi/branches{/branch}","tags_url":"https://api.github.com/repos/tomolimo/glpi/tags","blobs_url":"https://api.github.com/repos/tomolimo/glpi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tomolimo/glpi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tomolimo/glpi/git/refs{/sha}","trees_url":"https://api.github.com/repos/tomolimo/glpi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tomolimo/glpi/statuses/{sha}","languages_url":"https://api.github.com/repos/tomolimo/glpi/languages","stargazers_url":"https://api.github.com/repos/tomolimo/glpi/stargazers","contributors_url":"https://api.github.com/repos/tomolimo/glpi/contributors","subscribers_url":"https://api.github.com/repos/tomolimo/glpi/subscribers","subscription_url":"https://api.github.com/repos/tomolimo/glpi/subscription","commits_url":"https://api.github.com/repos/tomolimo/glpi/commits{/sha}","git_commits_url":"https://api.github.com/repos/tomolimo/glpi/git/commits{/sha}","comments_url":"https://api.github.com/repos/tomolimo/glpi/comments{/number}","issue_comment_url":"https://api.github.com/repos/tomolimo/glpi/issues/comments{/number}","contents_url":"https://api.github.com/repos/tomolimo/glpi/contents/{+path}","compare_url":"https://api.github.com/repos/tomolimo/glpi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tomolimo/glpi/merges","archive_url":"https://api.github.com/repos/tomolimo/glpi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tomolimo/glpi/downloads","issues_url":"https://api.github.com/repos/tomolimo/glpi/issues{/number}","pulls_url":"https://api.github.com/repos/tomolimo/glpi/pulls{/number}","milestones_url":"https://api.github.com/repos/tomolimo/glpi/milestones{/number}","notifications_url":"https://api.github.com/repos/tomolimo/glpi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tomolimo/glpi/labels{/name}","releases_url":"https://api.github.com/repos/tomolimo/glpi/releases{/id}","deployments_url":"https://api.github.com/repos/tomolimo/glpi/deployments","created_at":"2016-10-06T12:22:30Z","updated_at":"2016-10-06T12:22:39Z","pushed_at":"2017-01-16T10:19:51Z","git_url":"git://github.com/tomolimo/glpi.git","ssh_url":"git@github.com:tomolimo/glpi.git","clone_url":"https://github.com/tomolimo/glpi.git","svn_url":"https://github.com/tomolimo/glpi","homepage":"http://glpi-project.org/","size":269450,"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":"glpi-project:9.1/bugfixes","ref":"9.1/bugfixes","sha":"9acf8b70f7cc578dbca4d2f1a3ca0f107208635e","user":{"login":"glpi-project","id":13361707,"avatar_url":"https://avatars.githubusercontent.com/u/13361707?v=3","gravatar_id":"","url":"https://api.github.com/users/glpi-project","html_url":"https://github.com/glpi-project","followers_url":"https://api.github.com/users/glpi-project/followers","following_url":"https://api.github.com/users/glpi-project/following{/other_user}","gists_url":"https://api.github.com/users/glpi-project/gists{/gist_id}","starred_url":"https://api.github.com/users/glpi-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glpi-project/subscriptions","organizations_url":"https://api.github.com/users/glpi-project/orgs","repos_url":"https://api.github.com/users/glpi-project/repos","events_url":"https://api.github.com/users/glpi-project/events{/privacy}","received_events_url":"https://api.github.com/users/glpi-project/received_events","type":"Organization","site_admin":false},"repo":{"id":39182755,"name":"glpi","full_name":"glpi-project/glpi","owner":{"login":"glpi-project","id":13361707,"avatar_url":"https://avatars.githubusercontent.com/u/13361707?v=3","gravatar_id":"","url":"https://api.github.com/users/glpi-project","html_url":"https://github.com/glpi-project","followers_url":"https://api.github.com/users/glpi-project/followers","following_url":"https://api.github.com/users/glpi-project/following{/other_user}","gists_url":"https://api.github.com/users/glpi-project/gists{/gist_id}","starred_url":"https://api.github.com/users/glpi-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glpi-project/subscriptions","organizations_url":"https://api.github.com/users/glpi-project/orgs","repos_url":"https://api.github.com/users/glpi-project/repos","events_url":"https://api.github.com/users/glpi-project/events{/privacy}","received_events_url":"https://api.github.com/users/glpi-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/glpi-project/glpi","description":"GLPI stands for Gestionnaire Libre de Parc Informatique is a Free Asset and IT Management Software package, that provides ITIL Service Desk features, licenses tracking and software auditing.","fork":false,"url":"https://api.github.com/repos/glpi-project/glpi","forks_url":"https://api.github.com/repos/glpi-project/glpi/forks","keys_url":"https://api.github.com/repos/glpi-project/glpi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/glpi-project/glpi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/glpi-project/glpi/teams","hooks_url":"https://api.github.com/repos/glpi-project/glpi/hooks","issue_events_url":"https://api.github.com/repos/glpi-project/glpi/issues/events{/number}","events_url":"https://api.github.com/repos/glpi-project/glpi/events","assignees_url":"https://api.github.com/repos/glpi-project/glpi/assignees{/user}","branches_url":"https://api.github.com/repos/glpi-project/glpi/branches{/branch}","tags_url":"https://api.github.com/repos/glpi-project/glpi/tags","blobs_url":"https://api.github.com/repos/glpi-project/glpi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/glpi-project/glpi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/glpi-project/glpi/git/refs{/sha}","trees_url":"https://api.github.com/repos/glpi-project/glpi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/glpi-project/glpi/statuses/{sha}","languages_url":"https://api.github.com/repos/glpi-project/glpi/languages","stargazers_url":"https://api.github.com/repos/glpi-project/glpi/stargazers","contributors_url":"https://api.github.com/repos/glpi-project/glpi/contributors","subscribers_url":"https://api.github.com/repos/glpi-project/glpi/subscribers","subscription_url":"https://api.github.com/repos/glpi-project/glpi/subscription","commits_url":"https://api.github.com/repos/glpi-project/glpi/commits{/sha}","git_commits_url":"https://api.github.com/repos/glpi-project/glpi/git/commits{/sha}","comments_url":"https://api.github.com/repos/glpi-project/glpi/comments{/number}","issue_comment_url":"https://api.github.com/repos/glpi-project/glpi/issues/comments{/number}","contents_url":"https://api.github.com/repos/glpi-project/glpi/contents/{+path}","compare_url":"https://api.github.com/repos/glpi-project/glpi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/glpi-project/glpi/merges","archive_url":"https://api.github.com/repos/glpi-project/glpi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/glpi-project/glpi/downloads","issues_url":"https://api.github.com/repos/glpi-project/glpi/issues{/number}","pulls_url":"https://api.github.com/repos/glpi-project/glpi/pulls{/number}","milestones_url":"https://api.github.com/repos/glpi-project/glpi/milestones{/number}","notifications_url":"https://api.github.com/repos/glpi-project/glpi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/glpi-project/glpi/labels{/name}","releases_url":"https://api.github.com/repos/glpi-project/glpi/releases{/id}","deployments_url":"https://api.github.com/repos/glpi-project/glpi/deployments","created_at":"2015-07-16T07:20:21Z","updated_at":"2017-01-14T10:47:56Z","pushed_at":"2017-01-16T10:22:07Z","git_url":"git://github.com/glpi-project/glpi.git","ssh_url":"git@github.com:glpi-project/glpi.git","clone_url":"https://github.com/glpi-project/glpi.git","svn_url":"https://github.com/glpi-project/glpi","homepage":"http://glpi-project.org/","size":278776,"stargazers_count":256,"watchers_count":256,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":146,"mirror_url":null,"open_issues_count":294,"forks":146,"open_issues":294,"watchers":256,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/glpi-project/glpi/pulls/1617"},"html":{"href":"https://github.com/glpi-project/glpi/pull/1617"},"issue":{"href":"https://api.github.com/repos/glpi-project/glpi/issues/1617"},"comments":{"href":"https://api.github.com/repos/glpi-project/glpi/issues/1617/comments"},"review_comments":{"href":"https://api.github.com/repos/glpi-project/glpi/pulls/1617/comments"},"review_comment":{"href":"https://api.github.com/repos/glpi-project/glpi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/glpi-project/glpi/pulls/1617/commits"},"statuses":{"href":"https://api.github.com/repos/glpi-project/glpi/statuses/2671bf6ad1c03908403b9b67de34efdbcd661f4a"}}}}
{"actor":{"display_login":"tomolimo"}}