Use $locale instead of $this->getCurrentEditionLocale() in the hydrateSeoForm method
This commit is contained in:
@@ -139,7 +139,7 @@ abstract class AbstractSeoCrudController extends AbstractCrudController
|
|||||||
$data = array(
|
$data = array(
|
||||||
'id' => $object->getId(),
|
'id' => $object->getId(),
|
||||||
'locale' => $locale,
|
'locale' => $locale,
|
||||||
'url' => $object->getRewrittenUrl($this->getCurrentEditionLocale()),
|
'url' => $object->getRewrittenUrl($locale),
|
||||||
'meta_title' => $object->getMetaTitle(),
|
'meta_title' => $object->getMetaTitle(),
|
||||||
'meta_description' => $object->getMetaDescription(),
|
'meta_description' => $object->getMetaDescription(),
|
||||||
'meta_keywords' => $object->getMetaKeywords()
|
'meta_keywords' => $object->getMetaKeywords()
|
||||||
@@ -185,7 +185,6 @@ abstract class AbstractSeoCrudController extends AbstractCrudController
|
|||||||
return $this->errorPage($ex);
|
return $this->errorPage($ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$response = $this->performAdditionalUpdateSeoAction($updateSeoEvent);
|
$response = $this->performAdditionalUpdateSeoAction($updateSeoEvent);
|
||||||
|
|
||||||
if ($response == null) {
|
if ($response == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user