Skip to content

Commit

Permalink
Fix for old form who are not services (#3097)
Browse files Browse the repository at this point in the history
  • Loading branch information
lopes-vincent committed Apr 3, 2023
1 parent 35c705a commit 08875c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/lib/Thelia/Core/Form/TheliaFormFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ public function createForm(
}

/** @var BaseForm $form */
$form = $this->container->get($formId);
$form = $this->container->has($formId) ? $this->container->get($formId) : new $formId();

$form->init(
$this->requestStack->getCurrentRequest(),
$this->eventDispatcher,
Expand Down

0 comments on commit 08875c6

Please sign in to comment.