From 10ff7bdd62ea9cadfa1361a1b307b918fab4f39e Mon Sep 17 00:00:00 2001 From: Pierre-Louis LAUNAY Date: Thu, 14 Oct 2010 12:00:47 +0200 Subject: [PATCH] Fixes a fatal error in file Symfony/Bundle/FrameworkBundle/Resources/views/Form/widget/textarea_field.php : Call to undefined method Symfony\Bundle\FrameworkBundle\Templating\Form\Field::getDisplayedData() --- src/Symfony/Bundle/FrameworkBundle/Templating/Form/Field.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Templating/Form/Field.php b/src/Symfony/Bundle/FrameworkBundle/Templating/Form/Field.php index 052ddce0b5224..f1c503e0f5f76 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Templating/Form/Field.php +++ b/src/Symfony/Bundle/FrameworkBundle/Templating/Form/Field.php @@ -49,14 +49,14 @@ public function widget(array $attributes = array(), $template = null) } return $this->engine->render($template, array( - 'field' => $this, + 'field' => $this->field, 'origin' => $this->field, 'attributes' => array_merge($this->field->getAttributes(), $attributes), 'generator' => $this->generator, )); } - public function label($label, $template = null) + public function label($label = false, $template = null) { if (null === $template) { $template = 'FrameworkBundle:Form:label.php';