Ticket #756 (closed Patch: wontfix)
Validation::add_error does not support multi-dimensional input arrays
| Reported by: | Inquisitus | Owned by: | shadowhand |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.2.1 |
| Component: | Libraries:Validation | Version: | SVN HEAD |
| Keywords: | validation error add_error input | Cc: |
Description
The Validation::add_error method currently doesn't allow elements in a multi-dimensional input array to be set as it doesn't account for 'dot-noted' key strings. This patch fixes that by using Kohana::key_string_set to set the error.
N.B. There's other stuff in the Validation library that needs fixing too, for example, you currently can't add rules for 3rd-level fields (e.g. input[key1][key2]).
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
