Opened 15 years ago

Closed 15 years ago

#11099 closed (invalid)

Working with forms example code - possible typo

Reported by: TomA Owned by: nobody
Component: Documentation Version: dev
Severity: Keywords:
Cc: tomovo@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In the chapter "Working with forms", subchapter "Customizing the form template", the 3rd code example that deals with looping over the form's errors seems to be trying to loop over items of form.subject.errors. Shouldn't that loop over form.errors instead? That's what works for me at least.

Change History (1)

comment:1 by Matt McClanahan, 15 years ago

Resolution: invalid
Status: newclosed

Nope. Each form field has its own errors collection.

Note: See TracTickets for help on using tickets.
Back to Top