{"action":"created","issue":{"url":"https://api.github.com/repos/redCOMPONENT-COM/redCORE/issues/587","labels_url":"https://api.github.com/repos/redCOMPONENT-COM/redCORE/issues/587/labels{/name}","comments_url":"https://api.github.com/repos/redCOMPONENT-COM/redCORE/issues/587/comments","events_url":"https://api.github.com/repos/redCOMPONENT-COM/redCORE/issues/587/events","html_url":"https://github.com/redCOMPONENT-COM/redCORE/pull/587","id":112325786,"number":587,"title":"Avoid queries when no currency is received","user":{"login":"phproberto","id":1119272,"avatar_url":"https://avatars.githubusercontent.com/u/1119272?v=3","gravatar_id":"","url":"https://api.github.com/users/phproberto","html_url":"https://github.com/phproberto","followers_url":"https://api.github.com/users/phproberto/followers","following_url":"https://api.github.com/users/phproberto/following{/other_user}","gists_url":"https://api.github.com/users/phproberto/gists{/gist_id}","starred_url":"https://api.github.com/users/phproberto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phproberto/subscriptions","organizations_url":"https://api.github.com/users/phproberto/orgs","repos_url":"https://api.github.com/users/phproberto/repos","events_url":"https://api.github.com/users/phproberto/events{/privacy}","received_events_url":"https://api.github.com/users/phproberto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-20T09:37:35Z","updated_at":"2015-10-21T06:04:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/redCOMPONENT-COM/redCORE/pulls/587","html_url":"https://github.com/redCOMPONENT-COM/redCORE/pull/587","diff_url":"https://github.com/redCOMPONENT-COM/redCORE/pull/587.diff","patch_url":"https://github.com/redCOMPONENT-COM/redCORE/pull/587.patch"},"body":"In another project this `RHelperCurrency::getCurrency()` is called without having a real currency code. This could be solved there by removing calls but I think is ok to also avoid doing queries when a wrong currency has been passed.\r\n\r\nThis saves me 16 queries:\r\n![currency-queries](https://cloud.githubusercontent.com/assets/1119272/10603550/df5f5986-771e-11e5-84e7-72d37597af6f.png)\r\n"},"comment":{"url":"https://api.github.com/repos/redCOMPONENT-COM/redCORE/issues/comments/149792040","html_url":"https://github.com/redCOMPONENT-COM/redCORE/pull/587#issuecomment-149792040","issue_url":"https://api.github.com/repos/redCOMPONENT-COM/redCORE/issues/587","id":149792040,"user":{"login":"phproberto","id":1119272,"avatar_url":"https://avatars.githubusercontent.com/u/1119272?v=3","gravatar_id":"","url":"https://api.github.com/users/phproberto","html_url":"https://github.com/phproberto","followers_url":"https://api.github.com/users/phproberto/followers","following_url":"https://api.github.com/users/phproberto/following{/other_user}","gists_url":"https://api.github.com/users/phproberto/gists{/gist_id}","starred_url":"https://api.github.com/users/phproberto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phproberto/subscriptions","organizations_url":"https://api.github.com/users/phproberto/orgs","repos_url":"https://api.github.com/users/phproberto/repos","events_url":"https://api.github.com/users/phproberto/events{/privacy}","received_events_url":"https://api.github.com/users/phproberto/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T06:04:59Z","updated_at":"2015-10-21T06:04:59Z","body":"Updated "}}