Skip to content
This repository has been archived by the owner on Jun 2, 2020. It is now read-only.

Commit

Permalink
Fixed an invalid call to a template
Browse files Browse the repository at this point in the history
The call to sonata_translations_like_help.html.twig was called with the
wrong prefix (Translate instead of Translation where the file is
located)
  • Loading branch information
Sjoerd Adema authored and Sjoerd Adema committed Mar 2, 2015
1 parent 82727cf commit 6d50907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Admin/TranslationAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected function configureFormFields(FormMapper $formMapper) {

$likes = $this->modelManager->getEntityManager($subject)->getRepository(get_class($subject))->findOneLikes($subject);

$help = $this->getConfigurationPool()->getContainer()->get('templating')->render('PierstovalTranslationBundle:Translate:sonata_translations_like_help.html.twig', array('translations' => $likes));
$help = $this->getConfigurationPool()->getContainer()->get('templating')->render('PierstovalTranslationBundle:Translation:sonata_translations_like_help.html.twig', array('translations' => $likes));

$formMapper
->add('locale', 'text', array('disabled'=>true))
Expand Down

0 comments on commit 6d50907

Please sign in to comment.