{"action":"created","issue":{"url":"https://api.github.com/repos/contao/core/issues/7842","repository_url":"https://api.github.com/repos/contao/core","labels_url":"https://api.github.com/repos/contao/core/issues/7842/labels{/name}","comments_url":"https://api.github.com/repos/contao/core/issues/7842/comments","events_url":"https://api.github.com/repos/contao/core/issues/7842/events","html_url":"https://github.com/contao/core/issues/7842","id":80633473,"number":7842,"title":"$this->action undefined in form view","user":{"login":"luger95","id":3602955,"avatar_url":"https://avatars.githubusercontent.com/u/3602955?v=3","gravatar_id":"","url":"https://api.github.com/users/luger95","html_url":"https://github.com/luger95","followers_url":"https://api.github.com/users/luger95/followers","following_url":"https://api.github.com/users/luger95/following{/other_user}","gists_url":"https://api.github.com/users/luger95/gists{/gist_id}","starred_url":"https://api.github.com/users/luger95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luger95/subscriptions","organizations_url":"https://api.github.com/users/luger95/orgs","repos_url":"https://api.github.com/users/luger95/repos","events_url":"https://api.github.com/users/luger95/events{/privacy}","received_events_url":"https://api.github.com/users/luger95/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-25T19:04:28Z","updated_at":"2016-04-18T08:10:52Z","closed_at":"2016-04-18T08:10:52Z","body":"I just find that my contao 3.4.5, the method attribute of a custom form was not defined in the html. So I check the configuration of my form. I had indeed POST method and a landing page set.\r\n\r\nSo I look in the file: system\\modules\\core\\forms\\form.php line 250 (if ($this->method == 'GET' && $this->jumpTo && ($objTarget = $this->objModel->getRelated('jumpTo')) !== null)).\r\nI deleted: \"$this->method == 'GET' && \" I am my method that appears."},"comment":{"url":"https://api.github.com/repos/contao/core/issues/comments/211256247","html_url":"https://github.com/contao/core/issues/7842#issuecomment-211256247","issue_url":"https://api.github.com/repos/contao/core/issues/7842","id":211256247,"user":{"login":"leofeyer","id":1192057,"avatar_url":"https://avatars.githubusercontent.com/u/1192057?v=3","gravatar_id":"","url":"https://api.github.com/users/leofeyer","html_url":"https://github.com/leofeyer","followers_url":"https://api.github.com/users/leofeyer/followers","following_url":"https://api.github.com/users/leofeyer/following{/other_user}","gists_url":"https://api.github.com/users/leofeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/leofeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leofeyer/subscriptions","organizations_url":"https://api.github.com/users/leofeyer/orgs","repos_url":"https://api.github.com/users/leofeyer/repos","events_url":"https://api.github.com/users/leofeyer/events{/privacy}","received_events_url":"https://api.github.com/users/leofeyer/received_events","type":"User","site_admin":false},"created_at":"2016-04-18T08:10:52Z","updated_at":"2016-04-18T08:10:52Z","body":"That's actually correct. If the method is not GET, the form will always be submitted to the current site and the visitor will be redirected **after** the form has been submitted successfully."}}