Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR Fixed field label in Folder->getCMSFields()

  • Loading branch information...
commit ef77b709c25330e201476fec1d7d5e214ce533c8 1 parent e5c4b0a
@chillu chillu authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 filesystem/Folder.php
View
7 filesystem/Folder.php
@@ -408,7 +408,12 @@ public function updateFilesystem() {
*/
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')

1 comment on commit ef77b70

@sminnee
Owner

Looks good.

Please sign in to comment.
Something went wrong with that request. Please try again.