From b7d4b3f1a2c50447c7a21a1efdddc86f4da502d7 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 15 Oct 2015 17:53:29 +0200 Subject: [PATCH] QuickForm: set decorators for form errors --- library/Director/Web/Form/QuickForm.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/library/Director/Web/Form/QuickForm.php b/library/Director/Web/Form/QuickForm.php index 3c5810dc..0d2f477e 100644 --- a/library/Director/Web/Form/QuickForm.php +++ b/library/Director/Web/Form/QuickForm.php @@ -75,6 +75,14 @@ abstract class QuickForm extends Zend_Form $this->setAction(Url::fromRequest()); $this->createIdElement(); $this->regenerateCsrfToken(); + $this->setDecorators( + array( + 'Description', + array('FormErrors', array('onlyCustomFormErrors' => true)), + 'FormElements', + 'Form' + ) + ); } protected function handleOptions($options = null)