{"action":"closed","issue":{"url":"https://api.github.com/repos/ckan/ckan/issues/3729","repository_url":"https://api.github.com/repos/ckan/ckan","labels_url":"https://api.github.com/repos/ckan/ckan/issues/3729/labels{/name}","comments_url":"https://api.github.com/repos/ckan/ckan/issues/3729/comments","events_url":"https://api.github.com/repos/ckan/ckan/issues/3729/events","html_url":"https://github.com/ckan/ckan/issues/3729","id":245353320,"number":3729,"title":"Documentation error","user":{"login":"ggcatu","id":9058818,"avatar_url":"https://avatars3.githubusercontent.com/u/9058818?v=4","gravatar_id":"","url":"https://api.github.com/users/ggcatu","html_url":"https://github.com/ggcatu","followers_url":"https://api.github.com/users/ggcatu/followers","following_url":"https://api.github.com/users/ggcatu/following{/other_user}","gists_url":"https://api.github.com/users/ggcatu/gists{/gist_id}","starred_url":"https://api.github.com/users/ggcatu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggcatu/subscriptions","organizations_url":"https://api.github.com/users/ggcatu/orgs","repos_url":"https://api.github.com/users/ggcatu/repos","events_url":"https://api.github.com/users/ggcatu/events{/privacy}","received_events_url":"https://api.github.com/users/ggcatu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"smotornyuk","id":11091199,"avatar_url":"https://avatars3.githubusercontent.com/u/11091199?v=4","gravatar_id":"","url":"https://api.github.com/users/smotornyuk","html_url":"https://github.com/smotornyuk","followers_url":"https://api.github.com/users/smotornyuk/followers","following_url":"https://api.github.com/users/smotornyuk/following{/other_user}","gists_url":"https://api.github.com/users/smotornyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/smotornyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smotornyuk/subscriptions","organizations_url":"https://api.github.com/users/smotornyuk/orgs","repos_url":"https://api.github.com/users/smotornyuk/repos","events_url":"https://api.github.com/users/smotornyuk/events{/privacy}","received_events_url":"https://api.github.com/users/smotornyuk/received_events","type":"User","site_admin":false},"assignees":[{"login":"smotornyuk","id":11091199,"avatar_url":"https://avatars3.githubusercontent.com/u/11091199?v=4","gravatar_id":"","url":"https://api.github.com/users/smotornyuk","html_url":"https://github.com/smotornyuk","followers_url":"https://api.github.com/users/smotornyuk/followers","following_url":"https://api.github.com/users/smotornyuk/following{/other_user}","gists_url":"https://api.github.com/users/smotornyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/smotornyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smotornyuk/subscriptions","organizations_url":"https://api.github.com/users/smotornyuk/orgs","repos_url":"https://api.github.com/users/smotornyuk/repos","events_url":"https://api.github.com/users/smotornyuk/events{/privacy}","received_events_url":"https://api.github.com/users/smotornyuk/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2017-07-25T10:16:32Z","updated_at":"2017-07-26T13:14:51Z","closed_at":"2017-07-26T13:14:51Z","body":"### CKAN Version if known (or site URL)\r\nhttp://docs.ckan.org/en/latest/contributing/frontend/templating.html#form-select\r\nhttp://docs.ckan.org/en/ckan-2.6.2/contributing/frontend/templating.html#form-select\r\n\r\n### Please describe the expected behaviour\r\n```\r\n{% import 'macros/form.html' as form %}\r\n    {{ form.select('year', label=_('Year'), options=[{'name':2010, 'value': 2010},{'name': 2011, 'value': 2011}], selected=2011, error=errors.year) }}\r\n```\r\n\r\n\r\n### Please describe the actual behaviour\r\n```\r\n{% import 'macros/form.html' as form %}\r\n{{ form.select('year', label=_('Year'), options={'value': 2010, 'value': 2011}, selected=2011, error=errors.year) }}\r\n```\r\n\r\n### What steps can be taken to reproduce the issue? \r\nThe example in the documentation is wrong, and actually doens't work.\r\n"}}
{"actor":{"display_login":"smotornyuk"}}