Ticket #601 (closed defect: fixed)

Opened 8 months ago

Last modified 7 months ago

Missing Validation Error Messages in Forms

Reported by: chris.parrish Assigned to:
Priority: major Milestone:
Component: core Keywords:
Cc:

Description

In the current version of Radiant (0.6.4), there are cases where trying to save a page with invalid entries results in a re-displaying of the edit-page form (good) but without the error messages attached to the fields (not good).

The message: "Validation errors occurred while processing this form. Please take a moment to review the form and correct any input errors before continuing." does show at the top of the page -- but with no field specific messages (or anything to let you know which field is the offender).

In my tests, the bug seems tied to whether or not Radiant is running from the gem or as a local copy within the application. Running from the gem (0.6.4) displays error messages just fine, Radiant installed in the /vendor/ directory (instance mode?) doesn't.

This bug is visible at http://demo.radiantcms.org (which appears to be in instance mode, version 0.6.4). To reproduce:

  1. Create a new page (I added a child to the home page).
  2. Don't add anything, just click "create page" or "save and continue editing" with your empty form.
  3. It chokes on the empty fields (rightly) and tells you so -- but doesn't provide any info about which fields have errors nor what their errors were.

By the way, this split-personality behavior is not limited to admin/pages/edit, but also affects snippets, layouts, and users (all forms, basically).

Change History

02/03/08 13:41:57 changed by seancribbs

  • status changed from new to closed.
  • resolution set to fixed.

Resolved in Rails 2 branch config/environment.rb