Zend Framework

Zend_Form_Element_File default description decorator

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.9.5
  • Fix Version/s: 1.10.0
  • Component/s: Zend_Form
  • Labels:
    None

Description

The default description decorator differs from the description decorator of other form elements.

Because of this, the default decorator class is added ('hint') while elements use the default css class 'description'. Making styling more complex than necessary.

Current:
Zend/Form/Element/File.php:86

->addDecorator('Description')

Should be:
Zend/Form/Element/File.php:86

->addDecorator('Description', array('tag' => 'p', 'class' => 'description'))

Default element: Zend/Form/Element.php:290

Activity

Hide
Thomas Weidner added a comment -

Fixed with r18944

Show
Thomas Weidner added a comment - Fixed with r18944

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: