fix(GridFieldAddNewMultiClass) removed obsolete config param

FIRST_SET has been removed from SS4
This commit is contained in:
Marcus 2017-05-04 11:41:58 +10:00 committed by GitHub
parent 0907b2f493
commit 0795113cf4

View File

@ -128,7 +128,7 @@ class GridFieldAddNewMultiClass implements GridField_HTMLProvider, GridField_URL
$title = singleton($class)->i18n_singular_name();
}
if ($ancestor_to_hide = Config::inst()->get($class, 'hide_ancestor', Config::FIRST_SET)) {
if ($ancestor_to_hide = Config::inst()->get($class, 'hide_ancestor')) {
$kill_ancestors[$ancestor_to_hide] = true;
}