Permalink
Browse files

MINOR Fixed field label in Folder->getCMSFields()

  • Loading branch information...
1 parent e5c4b0a commit ef77b709c25330e201476fec1d7d5e214ce533c8 @chillu chillu committed Mar 2, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 filesystem/Folder.php
View
@@ -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

Owner

sminnee commented on ef77b70 Mar 5, 2012

Looks good.

Please sign in to comment.