{"action":"created","issue":{"url":"https://api.github.com/repos/MISP/MISP/issues/1156","repository_url":"https://api.github.com/repos/MISP/MISP","labels_url":"https://api.github.com/repos/MISP/MISP/issues/1156/labels{/name}","comments_url":"https://api.github.com/repos/MISP/MISP/issues/1156/comments","events_url":"https://api.github.com/repos/MISP/MISP/issues/1156/events","html_url":"https://github.com/MISP/MISP/issues/1156","id":156078140,"number":1156,"title":"bug in search() in AttributesController?","user":{"login":"rotanid","id":654617,"avatar_url":"https://avatars.githubusercontent.com/u/654617?v=3","gravatar_id":"","url":"https://api.github.com/users/rotanid","html_url":"https://github.com/rotanid","followers_url":"https://api.github.com/users/rotanid/followers","following_url":"https://api.github.com/users/rotanid/following{/other_user}","gists_url":"https://api.github.com/users/rotanid/gists{/gist_id}","starred_url":"https://api.github.com/users/rotanid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rotanid/subscriptions","organizations_url":"https://api.github.com/users/rotanid/orgs","repos_url":"https://api.github.com/users/rotanid/repos","events_url":"https://api.github.com/users/rotanid/events{/privacy}","received_events_url":"https://api.github.com/users/rotanid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-21T02:01:22Z","updated_at":"2016-05-21T09:20:42Z","closed_at":null,"body":"in AttributesController.php there is the method search().\r\ninside, there is the following loop:\r\n```\r\nforeach ($orgArray as $orgArrayElement) {\r\n...\r\n}\r\n```\r\nbut **after** this loop there is some fiddling with $saveWord and $i which the other foreach-loops in the search-method have inside their loop-body.\r\nlooks like a bug to me, but i'm not that far into the code so i don't do a PR for this."},"comment":{"url":"https://api.github.com/repos/MISP/MISP/issues/comments/220767887","html_url":"https://github.com/MISP/MISP/issues/1156#issuecomment-220767887","issue_url":"https://api.github.com/repos/MISP/MISP/issues/1156","id":220767887,"user":{"login":"iglocska","id":3668672,"avatar_url":"https://avatars.githubusercontent.com/u/3668672?v=3","gravatar_id":"","url":"https://api.github.com/users/iglocska","html_url":"https://github.com/iglocska","followers_url":"https://api.github.com/users/iglocska/followers","following_url":"https://api.github.com/users/iglocska/following{/other_user}","gists_url":"https://api.github.com/users/iglocska/gists{/gist_id}","starred_url":"https://api.github.com/users/iglocska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iglocska/subscriptions","organizations_url":"https://api.github.com/users/iglocska/orgs","repos_url":"https://api.github.com/users/iglocska/repos","events_url":"https://api.github.com/users/iglocska/events{/privacy}","received_events_url":"https://api.github.com/users/iglocska/received_events","type":"User","site_admin":false},"created_at":"2016-05-21T09:20:42Z","updated_at":"2016-05-21T09:20:42Z","body":"This is indeed correct. The code outside of the foreach loop should set the description string for the search result, which in this case only stores the last searched for org name.\r\n\r\nThis results in the header text saying something like \"search results for the organisation(s) org3\" instead of \"search results for the organisation(s) org1, org2, org3\". "}}
{"actor":{"display_login":"iglocska"}}