Skip to content

Commit

Permalink
Fix seo form data getter
Browse files Browse the repository at this point in the history
  • Loading branch information
lopes-vincent authored Aug 18, 2022
1 parent 68f1ebb commit 6b299a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EventListener/SeoFormListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function saveProductSeoFields(UpdateSeoEvent $event, $eventName, EventDis

protected function saveSeoFields(UpdateSeoEvent $event, $eventName, EventDispatcherInterface $dispatcher, $elementKey): void
{
$form = $this->requestStack->getCurrentRequest()->request->get('thelia_seo');
$form = $this->requestStack->getCurrentRequest()->get('thelia_seo');

if (null === $form || !\array_key_exists('id', $form) || !\array_key_exists('canonical', $form)) {
return;
Expand Down

0 comments on commit 6b299a3

Please sign in to comment.