Ticket #756 (closed Patch: wontfix)

Opened 4 months ago

Last modified 6 weeks ago

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

add_error.patch (458 bytes) - added by Inquisitus 4 months ago.

Change History

Changed 4 months ago by Inquisitus

Changed 4 months ago by Inquisitus

  • owner changed from Shadowhand to - No owner -
  • component changed from Core to Libraries:Validation

Changed 3 months ago by Inquisitus

  • owner changed from - No owner - to shadowhand
  • priority changed from major to minor
  • type changed from Bug to Patch
  • status changed from new to assigned
  • milestone changed from 2.2 to 2.2.1

Changed 6 weeks ago by Shadowhand

  • status changed from assigned to closed
  • resolution set to wontfix

And it never will...

Note: See TracTickets for help on using tickets.