{"action":"created","issue":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/10366","repository_url":"https://api.github.com/repos/joomla/joomla-cms","labels_url":"https://api.github.com/repos/joomla/joomla-cms/issues/10366/labels{/name}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/10366/comments","events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/10366/events","html_url":"https://github.com/joomla/joomla-cms/pull/10366","id":153888180,"number":10366,"title":"Fix Notice error for undefined array and avoid 404 when associations are disabled","user":{"login":"mannybiker","id":3020893,"avatar_url":"https://avatars.githubusercontent.com/u/3020893?v=3","gravatar_id":"","url":"https://api.github.com/users/mannybiker","html_url":"https://github.com/mannybiker","followers_url":"https://api.github.com/users/mannybiker/followers","following_url":"https://api.github.com/users/mannybiker/following{/other_user}","gists_url":"https://api.github.com/users/mannybiker/gists{/gist_id}","starred_url":"https://api.github.com/users/mannybiker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mannybiker/subscriptions","organizations_url":"https://api.github.com/users/mannybiker/orgs","repos_url":"https://api.github.com/users/mannybiker/repos","events_url":"https://api.github.com/users/mannybiker/events{/privacy}","received_events_url":"https://api.github.com/users/mannybiker/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joomla/joomla-cms/labels/PR-staging","name":"PR-staging","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-09T22:55:18Z","updated_at":"2016-05-10T06:55:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/joomla/joomla-cms/pulls/10366","html_url":"https://github.com/joomla/joomla-cms/pull/10366","diff_url":"https://github.com/joomla/joomla-cms/pull/10366.diff","patch_url":"https://github.com/joomla/joomla-cms/pull/10366.patch"},"body":"Pull Request for Issue # .\r\n\r\n#### Summary of Changes\r\nFix Notice error for undefined array and avoid 404 using the TOS with original language in case of multi-language association is disabled and an article from a different language than the current used is configured.\r\n\r\n#### Testing Instructions\r\nNo Error Fix\r\nCreate a single language website environment and enable the profile plugins in order to request the custom TOS field in the user registration form\r\nCheck that no PHP Notice errors raise.\r\n\r\nNo Association Fix\r\nCreate a multi language website environment and enable the profile plugins in order to request the custom TOS field in the user registration form. \r\nSelect an article.\r\nIn the Language Filter plugin disable the Item Associations\r\nTry to register using a different front end language than the one associated to the TOS article previously chosen.\r\nCheck that the TOS is correctly linked to the article originally selected, despite the current language is different (so avoiding 404)\r\n"},"comment":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/comments/218074064","html_url":"https://github.com/joomla/joomla-cms/pull/10366#issuecomment-218074064","issue_url":"https://api.github.com/repos/joomla/joomla-cms/issues/10366","id":218074064,"user":{"login":"zero-24","id":2596554,"avatar_url":"https://avatars.githubusercontent.com/u/2596554?v=3","gravatar_id":"","url":"https://api.github.com/users/zero-24","html_url":"https://github.com/zero-24","followers_url":"https://api.github.com/users/zero-24/followers","following_url":"https://api.github.com/users/zero-24/following{/other_user}","gists_url":"https://api.github.com/users/zero-24/gists{/gist_id}","starred_url":"https://api.github.com/users/zero-24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zero-24/subscriptions","organizations_url":"https://api.github.com/users/zero-24/orgs","repos_url":"https://api.github.com/users/zero-24/repos","events_url":"https://api.github.com/users/zero-24/events{/privacy}","received_events_url":"https://api.github.com/users/zero-24/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T06:55:49Z","updated_at":"2016-05-10T06:55:49Z","body":"I have tested this item :white_check_mark: successfully on e1b3e9ad4d3497f59ec46491da486068c9c4a47f<br /><br />Works good to me. Thanks!<hr /><sub>This comment was created with the <a href=\"https://github.com/joomla/jissues\">J!Tracker Application</a> at <a href=\"https://issues.joomla.org/tracker/joomla-cms/10366\">issues.joomla.org/joomla-cms/10366</a>.</sub>"}}