8000 Fixes 2 errors in displaying a form by laupiFrpar · Pull Request #21 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Fixes 2 errors in displaying a form #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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()
  • Loading branch information
Pierre-Louis LAUNAY committed Oct 14, 2010
commit 10ff7bdd62ea9cadfa1361a1b307b918fab4f39e
4 changes: 2 additions & 2 deletions src/Symfony/Bundle/FrameworkBundle/Templating/Form/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
0