Compare commits

...

2 Commits

Author SHA1 Message Date
Guy Sartorelli
3c9f60f0a8
Merge 317b6548d7 into 574ca14ee7 2024-10-22 05:31:24 +13:00
Guy Sartorelli
574ca14ee7
ENH Use config instead of runtime code to remove menu item (#1337) 2024-10-21 11:56:02 +13:00
2 changed files with 2 additions and 6 deletions

View File

@ -1,6 +0,0 @@
<?php
use SilverStripe\Admin\CMSMenu;
use SilverStripe\UserForms\Control\UserDefinedFormAdmin;
CMSMenu::remove_menu_class(UserDefinedFormAdmin::class);

View File

@ -47,6 +47,8 @@ class UserDefinedFormAdmin extends LeftAndMain
private static $url_segment = 'user-forms';
private static $ignore_menuitem = true;
/**
* @var string The name of the folder where form submissions will be placed by default
*/