mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 11:06:02 +02:00
BUGFIX: Fixed test modeladmin
This commit is contained in:
parent
ac78bf05a9
commit
de6d375b6c
@ -1,11 +1,3 @@
|
||||
<?php
|
||||
|
||||
// Set up TestModelAdmin
|
||||
/*
|
||||
Director::addRules(100, array(
|
||||
'admin/test' => 'TestModelAdmin',
|
||||
));
|
||||
CMSMenu::add_menu_item('test', 'Test ModelAdmin', 'admin/test', 'TestModelAdmin');
|
||||
*/
|
||||
|
||||
Object::add_extension('Member', 'FrameworkTestRole');
|
@ -1,6 +1,9 @@
|
||||
<?php
|
||||
|
||||
class TestModelAdmin extends ModelAdmin {
|
||||
static $url_segment = 'test';
|
||||
static $menu_title = 'Test MdAdm';
|
||||
|
||||
public static $managed_models = array(
|
||||
"Client",
|
||||
"Contact",
|
||||
@ -8,9 +11,6 @@ class TestModelAdmin extends ModelAdmin {
|
||||
"Developer",
|
||||
);
|
||||
|
||||
function Link() {
|
||||
return 'admin/test';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Loading…
Reference in New Issue
Block a user