{"action":"opened","issue":{"url":"https://api.github.com/repos/dcngmbh/moox_news/issues/12","repository_url":"https://api.github.com/repos/dcngmbh/moox_news","labels_url":"https://api.github.com/repos/dcngmbh/moox_news/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/dcngmbh/moox_news/issues/12/comments","events_url":"https://api.github.com/repos/dcngmbh/moox_news/issues/12/events","html_url":"https://github.com/dcngmbh/moox_news/issues/12","id":136703156,"number":12,"title":"Set overwriteDemand get parameter on filter submit","user":{"login":"jakub-czyz","id":4918617,"avatar_url":"https://avatars.githubusercontent.com/u/4918617?v=3","gravatar_id":"","url":"https://api.github.com/users/jakub-czyz","html_url":"https://github.com/jakub-czyz","followers_url":"https://api.github.com/users/jakub-czyz/followers","following_url":"https://api.github.com/users/jakub-czyz/following{/other_user}","gists_url":"https://api.github.com/users/jakub-czyz/gists{/gist_id}","starred_url":"https://api.github.com/users/jakub-czyz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakub-czyz/subscriptions","organizations_url":"https://api.github.com/users/jakub-czyz/orgs","repos_url":"https://api.github.com/users/jakub-czyz/repos","events_url":"https://api.github.com/users/jakub-czyz/events{/privacy}","received_events_url":"https://api.github.com/users/jakub-czyz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-26T13:52:36Z","updated_at":"2016-02-26T13:52:36Z","closed_at":null,"body":"I solved it with Javascript. Is there a better solution via the controller?\r\n\r\n```javascript\r\n$(function() {\r\n\t\t\t$( \"#news-filter-form\" ).submit(function(event) {\r\n\t\t\t\tevent.preventDefault();\r\n\r\n\t\t\t\tvar formAction = '/' + $(this).attr('action');\r\n\r\n\t\t\t\tif( $('#yearFilter').val() != '' ){\r\n\t\t\t\t\tvar yearValue = $('#yearFilter').val();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tvar yearValue = 'null';\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif( $('#monthFilter').val() != '' ){\r\n\t\t\t\t\tvar monthValue = $('#monthFilter').val();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tvar monthValue = 'null';\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif( $('#zipFilter').val() != '' ){\r\n\t\t\t\t\tvar zipValue = $('#zipFilter').val();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tvar zipValue = 'null';\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar params = { 'tx_mooxnews_pi1[overwriteDemand][year]':yearValue, 'tx_mooxnews_pi1[overwriteDemand][month]':monthValue, 'tx_mooxnews_pi1[overwriteDemand][zip]':zipValue };\r\n\t\t\t\tvar new_url = window.location.protocol + '//' + window.location.hostname + formAction + '?' + jQuery.param(params);\r\n\r\n\t\t\t\treturn window.location.replace(new_url);\r\n\t\t\t});\r\n\t\t});\r\n```"}}