Merge pull request #2717 from xini/fix-visibility-field

FIX SiteTree visibility field name
This commit is contained in:
Loz Calver 2022-01-25 09:16:28 +00:00 committed by GitHub
commit ca086142b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2214,7 +2214,7 @@ class SiteTree extends DataObject implements PermissionProvider, i18nEntityProvi
);
$parentType->addExtraClass('noborder');
$visibility->setTitle($this->fieldLabel('Visibility'));
$visibility->setName('Visibility')->setTitle($this->fieldLabel('Visibility'));
// This filter ensures that the ParentID dropdown selection does not show this node,