Project

General

Profile

Actions

Bug #1730

closed

Form broken when fields with help_inline have errors

Added by Olivier Favre over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
Rails
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Open the Puppetclasses page, edit a puppetclass.
Go to the Smart-Variables tab, edit or create a smart-variable.
We'll add 3 errors:
  • put a blank name
  • select a type validator of "regexp"
  • type "^good" in validator constraint
  • type "foo" as default value
  • add a matcher, type "bar" for its value

Submit the form.

We have two kinds of problem:
  • The Smart-variables tab isn't highlighted in red (check for each smart-var to be so too)
  • (The name field has no problem and has a help_inline of "can't be blank")
  • The default value and matcher value fields are completely broken and appear partially as raw text.

I suspect the fields with errors suddenly no longer understand the :help_inline attribute, that gets written as an arbitrary HTML tag argument, which is unfortunately .html_safe.

Actions #1

Updated by Amos Benari over 11 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF