Feature Request #2195

Support for arrays of errors in form validation

Added by Marcus Cobden over 2 years ago. Updated 9 months ago.

Status:Closed Start date:10/01/2009
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:Core
Target version:v3.2.0 Estimated time:1.00 hour
Resolution:wontfix Points:

Description

When validating the following (with a custom method) you will want to return an array of errors, one for each field.

<form action="" method="post">
<input type="text" name="some_field[]" value="1">
<input type="text" name="some_field[]" value="2">
<input type="text" name="some_field[]" value="3">
<input type="submit" value="submit">
</form>

Check the commit for more info and a patch.

http://github.com/mcobden/kohana-core/commit/2ea6332ac4ba0403bea73f2bb55f9f79fb02302f


Related issues

related to Kohana v3.x - Feature Request #1896: Validate - Global filters skip arrays v3.1.0 Closed 08/02/2009

History

Updated by Woody Gilk over 2 years ago

  • Status changed from New to Assigned
  • Assignee set to Woody Gilk
  • Target version changed from v3.0.1 to v3.1.0

This has to be targeted for v3.1.0, because it adds new features.

Updated by Jeremy Bush over 1 year ago

  • Assignee changed from Woody Gilk to Matt Button

Updated by Isaiah DeRose-Wilson about 1 year ago

  • Status changed from Assigned to Feedback
  • Assignee deleted (Matt Button)
  • Target version changed from v3.1.0 to v3.2.0

This sounds like support for validating sub arrays. I think we should either fully support them or not at all (like we currently do). I think support for validating sub arrays is a good thing to talk about for 3.2 so I'm going to bump this back.

Also your link seems to be dead. If you still have the code can you please add an updated link to this issue so we can get a better idea what you had in mind? Thanks!

Updated by Marcus Cobden about 1 year ago

Alas I've lost the code, it was a hack anyway, so no real loss.

Validating sub-arrays sounds like it would address this, yes. :)

Updated by Jeremy Bush 9 months ago

  • Status changed from Feedback to Closed
  • Resolution set to wontfix

We don't support validating sub-arrays right now.

Also available in: Atom PDF