'Twas brillig, and Thomas Weidner at 23/11/09 17:57 did gyre and gimble:
What do you mean with "standard" ?
Actually the file element uses
->addDecorator('Description', array('tag' => 'p', 'class' => 'description'))

This is the same decorator as within Element and Captcha.
Other elements like Image or Submit don't have a standard description decorator.

That is very strange.

On my copy of ZF, it seems that the following patch was part of my transition from 1.7.1 -> 1.9.1

@@ -78,6 +83,7 @@ class Zend_Form_Element_File extends Zend_Form_Element_Xhtml
         if (empty($decorators)) {
             $this->addDecorator('File')
                  ->addDecorator('Errors')
+                 ->addDecorator('Description')
                  ->addDecorator('HtmlTag', array('tag' => 'dd'))
                  ->addDecorator('Label', array('tag' => 'dt'));
         }


This means it didn't used to have a Description decoration and now it has one, but it's not using the one you metnion above.

But looking in svn trunk just now I see you are correct....

http://framework.zend.com/svn/framework/standard/trunk/library/Zend/Form/Element/File.php

Seems it was fixed in r18944 which will hopefully be released with 1.9.6 when it comes along.

Col

--

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mandriva Linux Contributor [http://www.mandriva.com/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]

Reply via email to