{"action":"closed","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/7133","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/7133/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/7133/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/7133/events","html_url":"https://github.com/cakephp/cakephp/issues/7133","id":97845779,"number":7133,"title":"[3.0.10] Question - how to display nested validation errors","user":{"login":"codercms","id":4526911,"avatar_url":"https://avatars.githubusercontent.com/u/4526911?v=3","gravatar_id":"","url":"https://api.github.com/users/codercms","html_url":"https://github.com/codercms","followers_url":"https://api.github.com/users/codercms/followers","following_url":"https://api.github.com/users/codercms/following{/other_user}","gists_url":"https://api.github.com/users/codercms/gists{/gist_id}","starred_url":"https://api.github.com/users/codercms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codercms/subscriptions","organizations_url":"https://api.github.com/users/codercms/orgs","repos_url":"https://api.github.com/users/codercms/repos","events_url":"https://api.github.com/users/codercms/events{/privacy}","received_events_url":"https://api.github.com/users/codercms/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cakephp/cakephp/labels/Question","name":"Question","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/cakephp/cakephp/milestones/53","html_url":"https://github.com/cakephp/cakephp/milestones/3.0.11","labels_url":"https://api.github.com/repos/cakephp/cakephp/milestones/53/labels","id":1219730,"number":53,"title":"3.0.11","description":"","creator":{"login":"lorenzo","id":37621,"avatar_url":"https://avatars.githubusercontent.com/u/37621?v=3","gravatar_id":"","url":"https://api.github.com/users/lorenzo","html_url":"https://github.com/lorenzo","followers_url":"https://api.github.com/users/lorenzo/followers","following_url":"https://api.github.com/users/lorenzo/following{/other_user}","gists_url":"https://api.github.com/users/lorenzo/gists{/gist_id}","starred_url":"https://api.github.com/users/lorenzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorenzo/subscriptions","organizations_url":"https://api.github.com/users/lorenzo/orgs","repos_url":"https://api.github.com/users/lorenzo/repos","events_url":"https://api.github.com/users/lorenzo/events{/privacy}","received_events_url":"https://api.github.com/users/lorenzo/received_events","type":"User","site_admin":false},"open_issues":24,"closed_issues":25,"state":"open","created_at":"2015-07-22T07:42:38Z","updated_at":"2015-07-29T03:29:00Z","due_on":"2015-08-01T22:00:00Z","closed_at":null},"comments":3,"created_at":"2015-07-29T02:43:29Z","updated_at":"2015-07-29T03:29:00Z","closed_at":"2015-07-29T03:29:00Z","body":"Here is code of form\r\n```php\r\n <?= $this->Form->create($element, ['enctype' => 'multipart/form-data']) ?>\r\n    <fieldset>\r\n        <legend><?= __('Add Element') ?></legend>\r\n        <?php\r\n            echo $this->Form->input('user_id', ['options' => $users]);\r\n            echo $this->Form->input('title');\r\n            echo $this->Form->input('content');\r\n            echo $this->Form->input('price');\r\n            echo $this->Form->input('files[0][file]', ['type' => 'file']);\r\n            echo $this->Form->input('files[1][file]', ['type' => 'file']);\r\n        ?>\r\n    </fieldset>\r\n    <?= $this->Form->button(__('Submit')) ?>\r\n    <?= $this->Form->end() ?>\r\n```\r\nHere is validation rules\r\n```php\r\n$fileValidate = new Validator();\r\n$fileValidate->add('file', [\r\n    'uploadError' => ['rule' => ['uploadError', false], 'message' => __d('validation', 'file_upload_error'), 'last' => true],\r\n    'mimeType' => ['rule' => ['mimeType', ['text/plain']], 'message' => __d('validation', 'invalid_file_type')],\r\n    'minSize' => ['rule' => ['fileSize', '>=', '1B'], 'message' => __d('validation', 'invalid_file_size')],\r\n    'maxSize' => ['rule' => ['fileSize', '<=', '1000B'], 'message' => __d('validation', 'invalid_file_size')]\r\n]);\r\n\r\n$validator->requirePresence('files', true, __d('validation', 'specify_files'));\r\n$validator->addNestedMany('files', $fileValidate);\r\n```\r\n\r\nSo i specially made a mistake, and i got this\r\n![image](https://cloud.githubusercontent.com/assets/4526911/8948836/6471273c-35b4-11e5-952c-7b97b56ad3ee.png)\r\nNo errors are displayed, but errors are exists:\r\n![image](https://cloud.githubusercontent.com/assets/4526911/8948848/8e6c9ee0-35b4-11e5-824a-22a6e5c00e96.png)\r\n"}}