{"action":"created","issue":{"url":"https://api.github.com/repos/Piwigo/Piwigo/issues/402","labels_url":"https://api.github.com/repos/Piwigo/Piwigo/issues/402/labels{/name}","comments_url":"https://api.github.com/repos/Piwigo/Piwigo/issues/402/comments","events_url":"https://api.github.com/repos/Piwigo/Piwigo/issues/402/events","html_url":"https://github.com/Piwigo/Piwigo/issues/402","id":125796387,"number":402,"title":"Rating","user":{"login":"zbas","id":6650190,"avatar_url":"https://avatars.githubusercontent.com/u/6650190?v=3","gravatar_id":"","url":"https://api.github.com/users/zbas","html_url":"https://github.com/zbas","followers_url":"https://api.github.com/users/zbas/followers","following_url":"https://api.github.com/users/zbas/following{/other_user}","gists_url":"https://api.github.com/users/zbas/gists{/gist_id}","starred_url":"https://api.github.com/users/zbas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zbas/subscriptions","organizations_url":"https://api.github.com/users/zbas/orgs","repos_url":"https://api.github.com/users/zbas/repos","events_url":"https://api.github.com/users/zbas/events{/privacy}","received_events_url":"https://api.github.com/users/zbas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-10T03:19:55Z","updated_at":"2016-01-10T13:25:50Z","closed_at":null,"body":"Ratings have broken for me when using $conf['rate_items'] array entries that aren't integers 0-9, I used the LocalFiles Editor plugin.\r\n\r\nThe star icons filled incorrectly.\r\nThe rating score did not update for some values.\r\nNon-numeric rate items cause an error when selected.\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/Piwigo/Piwigo/issues/comments/170344277","html_url":"https://github.com/Piwigo/Piwigo/issues/402#issuecomment-170344277","issue_url":"https://api.github.com/repos/Piwigo/Piwigo/issues/402","id":170344277,"user":{"login":"zbas","id":6650190,"avatar_url":"https://avatars.githubusercontent.com/u/6650190?v=3","gravatar_id":"","url":"https://api.github.com/users/zbas","html_url":"https://github.com/zbas","followers_url":"https://api.github.com/users/zbas/followers","following_url":"https://api.github.com/users/zbas/following{/other_user}","gists_url":"https://api.github.com/users/zbas/gists{/gist_id}","starred_url":"https://api.github.com/users/zbas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zbas/subscriptions","organizations_url":"https://api.github.com/users/zbas/orgs","repos_url":"https://api.github.com/users/zbas/repos","events_url":"https://api.github.com/users/zbas/events{/privacy}","received_events_url":"https://api.github.com/users/zbas/received_events","type":"User","site_admin":false},"created_at":"2016-01-10T13:25:50Z","updated_at":"2016-01-10T13:25:50Z","body":"Thanks for replying, perhaps this could be documented in config_default.inc.php or could raise an error? It is not obvious from outside that you can't say have an ordered array ['bad','alright','good','excellent']. Also if I wasn't clear before combinations of 0-9 i.e. 10 caused the first problem.\r\n![rating10](https://cloud.githubusercontent.com/assets/6650190/12221692/8b8a6e80-b79d-11e5-9c70-c066bda935f1.png)\r\n"}}