Skip to content

Commit

Permalink
Fix form problem in PROD mode
Browse files Browse the repository at this point in the history
  • Loading branch information
shochdoerfer authored and PierreGauthier committed Apr 8, 2024
1 parent 86f2a13 commit 7932e4d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Controller/AdminGallyController.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ public function renderGallyConfigForm(Request $request): Response

return $this->render('@GallySyliusPlugin/Config/_form.html.twig', [
'connectionForm' => $configForm->createView(),
'testForm' => $this->createForm(TestConnectionType::class),
'syncForm' => $this->createForm(SyncSourceFieldsType::class),
'testForm' => $this->createForm(TestConnectionType::class)->createView(),
'syncForm' => $this->createForm(SyncSourceFieldsType::class)->createView(),
]);
}

Expand All @@ -77,9 +77,9 @@ public function renderTestConnectionForm(Request $request): Response
}

return $this->render('@GallySyliusPlugin/Config/_form.html.twig', [
'connectionForm' => $this->createForm(GallyConfigurationType::class, $gallyConfiguration),
'testForm' => $testForm,
'syncForm' => $this->createForm(SyncSourceFieldsType::class),
'connectionForm' => $this->createForm(GallyConfigurationType::class, $gallyConfiguration)->createView(),
'testForm' => $testForm->createView(),
'syncForm' => $this->createForm(SyncSourceFieldsType::class)->createView(),
]);
}

Expand All @@ -96,9 +96,9 @@ public function renderSyncFieldsForm(Request $request): Response
}

return $this->render('@GallySyliusPlugin/Config/_form.html.twig', [
'connectionForm' => $this->createForm(GallyConfigurationType::class, $gallyConfiguration),
'testForm' => $this->createForm(TestConnectionType::class),
'syncForm' => $syncForm,
'connectionForm' => $this->createForm(GallyConfigurationType::class, $gallyConfiguration)->createView(),
'testForm' => $this->createForm(TestConnectionType::class)->createView(),
'syncForm' => $syncForm->createView(),
]);
}
}

0 comments on commit 7932e4d

Please sign in to comment.