mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Fixed field label in Folder->getCMSFields()
This commit is contained in:
parent
e5c4b0a36b
commit
ef77b709c2
@ -408,7 +408,12 @@ class Folder extends File {
|
||||
*/
|
||||
function getCMSFields() {
|
||||
// Hide field on root level, which can't be renamed
|
||||
$titleField = (!$this->ID || $this->ID === "root") ? new HiddenField("Name") : new TextField("Name", _t('Folder.NAME'));
|
||||
if(!$this->ID || $this->ID === "root") {
|
||||
$titleField = new HiddenField("Name");
|
||||
} else {
|
||||
$titleField = new TextField("Name", $this->fieldLabel('Name'));
|
||||
}
|
||||
|
||||
$fields = new FieldList(
|
||||
$titleField,
|
||||
new HiddenField('ParentID')
|
||||
|
Loading…
Reference in New Issue
Block a user