{"action":"created","issue":{"url":"https://api.github.com/repos/bluedynamics/bda.plone.orders/issues/27","labels_url":"https://api.github.com/repos/bluedynamics/bda.plone.orders/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/bluedynamics/bda.plone.orders/issues/27/comments","events_url":"https://api.github.com/repos/bluedynamics/bda.plone.orders/issues/27/events","html_url":"https://github.com/bluedynamics/bda.plone.orders/issues/27","id":98350086,"number":27,"title":"Sorting the backend table fails","user":{"login":"marfago","id":1191501,"avatar_url":"https://avatars.githubusercontent.com/u/1191501?v=3","gravatar_id":"","url":"https://api.github.com/users/marfago","html_url":"https://github.com/marfago","followers_url":"https://api.github.com/users/marfago/followers","following_url":"https://api.github.com/users/marfago/following{/other_user}","gists_url":"https://api.github.com/users/marfago/gists{/gist_id}","starred_url":"https://api.github.com/users/marfago/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marfago/subscriptions","organizations_url":"https://api.github.com/users/marfago/orgs","repos_url":"https://api.github.com/users/marfago/repos","events_url":"https://api.github.com/users/marfago/events{/privacy}","received_events_url":"https://api.github.com/users/marfago/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-31T09:14:40Z","updated_at":"2015-08-26T10:37:39Z","closed_at":null,"body":"When sorting the backend table for some attributes (email, state and salaried) it fails with an error:\r\n\r\n2015-07-31T11:13:40 ERROR Zope.SiteErrorLog 1438334020.950.670333757341 http://plone/@@ordersdata\r\nTraceback (innermost last):\r\n  Module ZPublisher.Publish, line 138, in publish\r\n  Module ZPublisher.mapply, line 77, in mapply\r\n  Module ZPublisher.Publish, line 48, in call_object\r\n  Module bda.plone.orders.browser.views, line 510, in __call__\r\n  Module bda.plone.orders.browser.views, line 236, in __call__\r\n  Module bda.plone.orders.browser.views, line 583, in query\r\n  Module souper.soup, line 107, in lazy\r\n  Module repoze.catalog.catalog, line 153, in query\r\n  Module repoze.catalog.catalog, line 135, in sort_result\r\n  Module UserDict, line 23, in __getitem__\r\nKeyError: 'state'"},"comment":{"url":"https://api.github.com/repos/bluedynamics/bda.plone.orders/issues/comments/134940244","html_url":"https://github.com/bluedynamics/bda.plone.orders/issues/27#issuecomment-134940244","issue_url":"https://api.github.com/repos/bluedynamics/bda.plone.orders/issues/27","id":134940244,"user":{"login":"rnixx","id":246021,"avatar_url":"https://avatars.githubusercontent.com/u/246021?v=3","gravatar_id":"","url":"https://api.github.com/users/rnixx","html_url":"https://github.com/rnixx","followers_url":"https://api.github.com/users/rnixx/followers","following_url":"https://api.github.com/users/rnixx/following{/other_user}","gists_url":"https://api.github.com/users/rnixx/gists{/gist_id}","starred_url":"https://api.github.com/users/rnixx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnixx/subscriptions","organizations_url":"https://api.github.com/users/rnixx/orgs","repos_url":"https://api.github.com/users/rnixx/repos","events_url":"https://api.github.com/users/rnixx/events{/privacy}","received_events_url":"https://api.github.com/users/rnixx/received_events","type":"User","site_admin":false},"created_at":"2015-08-26T10:37:39Z","updated_at":"2015-08-26T10:37:39Z","body":"uh, be careful with state on bookings https://github.com/bluedynamics/bda.plone.orders/commit/8249c7ec23fc212d10bd6f541062d9922c646dbe"}}