{"action":"created","issue":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/5894","labels_url":"https://api.github.com/repos/joomla/joomla-cms/issues/5894/labels{/name}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/5894/comments","events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/5894/events","html_url":"https://github.com/joomla/joomla-cms/pull/5894","id":55642687,"number":5894,"title":"Update form.php","user":{"login":"pjdevries","id":1171835,"avatar_url":"https://avatars.githubusercontent.com/u/1171835?v=3","gravatar_id":"","url":"https://api.github.com/users/pjdevries","html_url":"https://github.com/pjdevries","followers_url":"https://api.github.com/users/pjdevries/followers","following_url":"https://api.github.com/users/pjdevries/following{/other_user}","gists_url":"https://api.github.com/users/pjdevries/gists{/gist_id}","starred_url":"https://api.github.com/users/pjdevries/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjdevries/subscriptions","organizations_url":"https://api.github.com/users/pjdevries/orgs","repos_url":"https://api.github.com/users/pjdevries/repos","events_url":"https://api.github.com/users/pjdevries/events{/privacy}","received_events_url":"https://api.github.com/users/pjdevries/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":"2015-01-27T16:48:49Z","updated_at":"2015-01-27T17:08:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/joomla/joomla-cms/pulls/5894","html_url":"https://github.com/joomla/joomla-cms/pull/5894","diff_url":"https://github.com/joomla/joomla-cms/pull/5894.diff","patch_url":"https://github.com/joomla/joomla-cms/pull/5894.patch"},"body":"In case of a validation failure, the (error) message is not displayed. This is due to the fact that an Exception object is pushed onto the JForm::errors array, while this must be a text string apparently.\r\n\r\nLine 1212\r\narray_push($this->errors, $valid);\r\n\r\nhas now been changed into\r\narray_push($this->errors, $valid->getMessage());\r\n\r\nWhich seems to solve the problem."},"comment":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/comments/71685563","html_url":"https://github.com/joomla/joomla-cms/pull/5894#issuecomment-71685563","issue_url":"https://api.github.com/repos/joomla/joomla-cms/issues/5894","id":71685563,"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":"2015-01-27T17:08:04Z","updated_at":"2015-01-27T17:08:04Z","body":"@pjdevries can you explain how we can reproduce that? what kind of validation error you mean?\r\n\r\nBTW the unit test fails:\r\n```\r\nThere was 1 failure:\r\n1) JFormTest::testGetErrors\r\nLine:831 The errors should be exception objects.\r\nFailed asserting that false is true.\r\n/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/joomla/form/JFormTest.php:832\r\n```\r\n\r\nSo maybe the exception object is correct?"}}