Opened 6 years ago

Closed 6 years ago

#11099 closed (invalid)

Working with forms example code - possible typo

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

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 Changed 6 years ago by mattmcc

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

Nope. Each form field has its own errors collection.

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