{"action":"created","issue":{"url":"https://api.github.com/repos/contao/contao/issues/172","repository_url":"https://api.github.com/repos/contao/contao","labels_url":"https://api.github.com/repos/contao/contao/issues/172/labels{/name}","comments_url":"https://api.github.com/repos/contao/contao/issues/172/comments","events_url":"https://api.github.com/repos/contao/contao/issues/172/events","html_url":"https://github.com/contao/contao/issues/172","id":378017222,"node_id":"MDU6SXNzdWUzNzgwMTcyMjI=","number":172,"title":"Backend - Messages will not be shown when there is a redirect after submit","user":{"login":"benfolds","id":4989989,"node_id":"MDQ6VXNlcjQ5ODk5ODk=","avatar_url":"https://avatars3.githubusercontent.com/u/4989989?v=4","gravatar_id":"","url":"https://api.github.com/users/benfolds","html_url":"https://github.com/benfolds","followers_url":"https://api.github.com/users/benfolds/followers","following_url":"https://api.github.com/users/benfolds/following{/other_user}","gists_url":"https://api.github.com/users/benfolds/gists{/gist_id}","starred_url":"https://api.github.com/users/benfolds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benfolds/subscriptions","organizations_url":"https://api.github.com/users/benfolds/orgs","repos_url":"https://api.github.com/users/benfolds/repos","events_url":"https://api.github.com/users/benfolds/events{/privacy}","received_events_url":"https://api.github.com/users/benfolds/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-11-06T20:19:49Z","updated_at":"2018-11-13T09:20:06Z","closed_at":null,"author_association":"NONE","body":"**Affected version(s)**\r\n4.6.x\r\n**Description**  \r\nI extend the tl_page.php in my bundle and add a new class. Inside this class i create a message\r\n\r\n` Message::addError(\r\n     sprintf($GLOBALS['TL_LANG']['MOD']['readerMessageInfo'],$reader['title'],$reader['table'],$reader['id'])\r\n);`\r\n\r\nThis message will only be shown when i use the \"Save\" button. When using \"Save and close\", i will be redirected to the pagetree view. There, the message will not be shown. When talking about errors, it would be important to show the message i guess."},"comment":{"url":"https://api.github.com/repos/contao/contao/issues/comments/438194053","html_url":"https://github.com/contao/contao/issues/172#issuecomment-438194053","issue_url":"https://api.github.com/repos/contao/contao/issues/172","id":438194053,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODE5NDA1Mw==","user":{"login":"benfolds","id":4989989,"node_id":"MDQ6VXNlcjQ5ODk5ODk=","avatar_url":"https://avatars3.githubusercontent.com/u/4989989?v=4","gravatar_id":"","url":"https://api.github.com/users/benfolds","html_url":"https://github.com/benfolds","followers_url":"https://api.github.com/users/benfolds/followers","following_url":"https://api.github.com/users/benfolds/following{/other_user}","gists_url":"https://api.github.com/users/benfolds/gists{/gist_id}","starred_url":"https://api.github.com/users/benfolds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benfolds/subscriptions","organizations_url":"https://api.github.com/users/benfolds/orgs","repos_url":"https://api.github.com/users/benfolds/repos","events_url":"https://api.github.com/users/benfolds/events{/privacy}","received_events_url":"https://api.github.com/users/benfolds/received_events","type":"User","site_admin":false},"created_at":"2018-11-13T09:20:06Z","updated_at":"2018-11-13T09:20:06Z","author_association":"NONE","body":"The message does not refer to a specific field. Also the error should not prevent the page from redirecting to the list because it is related to another backend module.\r\n\r\nIn this case, the bundle does the following thing:\r\nIf you change the alias of a page that has a reader module on it, you get a notification/error that this is a bad idea. But you can do so if you want, because mostly you have a good reason to do this. When you submit this change, the bundle sets a redirect rule in a table that redirects all old reader items to the new page. I want to notify the user that this rule is entered and he has to publish it if he wants to use it.\r\n\r\nBut i see this is kind of a very special case :)"}}
{"actor":{"display_login":"benfolds"}}