Skip to content

Commit

Permalink
Pass options to SitePageForm
Browse files Browse the repository at this point in the history
Not passing options prevented the add_to_navigation checkbox from
ever being added to the form.
  • Loading branch information
jimsafley committed Feb 20, 2024
1 parent 84eedf4 commit 62233fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/src/Service/Form/SitePageFormFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class SitePageFormFactory implements FactoryInterface
{
public function __invoke(ContainerInterface $services, $requestedName, array $options = null)
{
$form = new SitePageForm;
$form = new SitePageForm(null, $options);
$form->setCurrentTheme($services->get('Omeka\Site\ThemeManager')->getCurrentTheme());
return $form;
}
Expand Down

0 comments on commit 62233fb

Please sign in to comment.