{"action":"created","issue":{"url":"https://api.github.com/repos/lmsgit/lms/issues/780","repository_url":"https://api.github.com/repos/lmsgit/lms","labels_url":"https://api.github.com/repos/lmsgit/lms/issues/780/labels{/name}","comments_url":"https://api.github.com/repos/lmsgit/lms/issues/780/comments","events_url":"https://api.github.com/repos/lmsgit/lms/issues/780/events","html_url":"https://github.com/lmsgit/lms/pull/780","id":161372253,"number":780,"title":"cleaned code in customer list smarty plugin","user":{"login":"kosaa","id":17165619,"avatar_url":"https://avatars.githubusercontent.com/u/17165619?v=3","gravatar_id":"","url":"https://api.github.com/users/kosaa","html_url":"https://github.com/kosaa","followers_url":"https://api.github.com/users/kosaa/followers","following_url":"https://api.github.com/users/kosaa/following{/other_user}","gists_url":"https://api.github.com/users/kosaa/gists{/gist_id}","starred_url":"https://api.github.com/users/kosaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kosaa/subscriptions","organizations_url":"https://api.github.com/users/kosaa/orgs","repos_url":"https://api.github.com/users/kosaa/repos","events_url":"https://api.github.com/users/kosaa/events{/privacy}","received_events_url":"https://api.github.com/users/kosaa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-21T08:02:53Z","updated_at":"2016-06-21T08:24:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/lmsgit/lms/pulls/780","html_url":"https://github.com/lmsgit/lms/pull/780","diff_url":"https://github.com/lmsgit/lms/pull/780.diff","patch_url":"https://github.com/lmsgit/lms/pull/780.patch"},"body":"."},"comment":{"url":"https://api.github.com/repos/lmsgit/lms/issues/comments/227373173","html_url":"https://github.com/lmsgit/lms/pull/780#issuecomment-227373173","issue_url":"https://api.github.com/repos/lmsgit/lms/issues/780","id":227373173,"user":{"login":"chilek","id":1457437,"avatar_url":"https://avatars.githubusercontent.com/u/1457437?v=3","gravatar_id":"","url":"https://api.github.com/users/chilek","html_url":"https://github.com/chilek","followers_url":"https://api.github.com/users/chilek/followers","following_url":"https://api.github.com/users/chilek/following{/other_user}","gists_url":"https://api.github.com/users/chilek/gists{/gist_id}","starred_url":"https://api.github.com/users/chilek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chilek/subscriptions","organizations_url":"https://api.github.com/users/chilek/orgs","repos_url":"https://api.github.com/users/chilek/repos","events_url":"https://api.github.com/users/chilek/events{/privacy}","received_events_url":"https://api.github.com/users/chilek/received_events","type":"User","site_admin":false},"created_at":"2016-06-21T08:24:01Z","updated_at":"2016-06-21T08:24:01Z","body":"Można byłoby pozbyć się:\r\n```php\r\n$result .= sprintf('onChange=\"reset_customer(\\'%1$s\\', \\'%2$s\\', \\'%3$s\\');\" %4$s onfocus=\"reset_customer(\\'%1$s\\', \\'%2$s\\', \\'%3$s\\');\" %4$s ', $params['form'], $params['inputname'], $params['selectname'], $on_change);\r\n```\r\nna rzecz:\r\n```php\r\n$reset_customer = \"reset_customer('%1$s', '%2$s', '%3$s'); ${on_change}\";\r\n$result .= \"onChange=\\\"${reset_customer}\\\" onFocus=\\\"${reset_customer}\\\"\";\r\n```\r\nOkazuje się, że niewłaściwie również rozstawiłeś znaki \"\" (moja wersja powyżej też to poprawia)."}}
{"actor":{"display_login":"chilek"}}