Use $locale instead of $this->getCurrentEditionLocale() in the hydrateSeoForm method

This commit is contained in:
touffies
2013-12-11 18:14:48 +01:00
parent 8c20202778
commit 1b07e55396

View File

@@ -139,7 +139,7 @@ abstract class AbstractSeoCrudController extends AbstractCrudController
$data = array(
'id' => $object->getId(),
'locale' => $locale,
'url' => $object->getRewrittenUrl($this->getCurrentEditionLocale()),
'url' => $object->getRewrittenUrl($locale),
'meta_title' => $object->getMetaTitle(),
'meta_description' => $object->getMetaDescription(),
'meta_keywords' => $object->getMetaKeywords()
@@ -185,7 +185,6 @@ abstract class AbstractSeoCrudController extends AbstractCrudController
return $this->errorPage($ex);
}
$response = $this->performAdditionalUpdateSeoAction($updateSeoEvent);
if ($response == null) {