diff --git a/src/Symfony/Bundle/FrameworkBundle/Templating/Form/Field.php b/src/Symfony/Bundle/FrameworkBundle/Templating/Form/Field.php index 8f01c47fc17c4..afb222630b986 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Templating/Form/Field.php +++ b/src/Symfony/Bundle/FrameworkBundle/Templating/Form/Field.php @@ -66,10 +66,11 @@ public function label($label = false, $template = null) } return $this->engine->render($template, array( - 'field' => $this, - 'id' => $this->field->getId(), - 'key' => $this->field->getKey(), - 'label' => $label ? $label : ucfirst(strtolower(str_replace('_', ' ', $this->field->getKey()))) + 'field' => $this, + 'origin' => $this->field, + 'id' => $this->field->getId(), + 'key' => $this->field->getKey(), + 'label' => $label ? $label : ucfirst(strtolower(str_replace('_', ' ', $this->field->getKey()))) )); }