Permalink
Browse files

Default TreeDropdownField to TreeTitle

Same behaviour as in 2.x. All common elements displayed
in this field (SiteTree, Group, File) have a TreeTitle accessor.
  • Loading branch information...
1 parent 61cc033 commit abfb3c7095b0e4c822f0ca0765db2c04a4aec8dc @chillu chillu committed Jan 8, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 forms/TreeDropdownField.php
@@ -85,7 +85,7 @@ class TreeDropdownField extends FormField {
* @param bool $showSearch enable the ability to search the tree by
* entering the text in the input field.
*/
- public function __construct($name, $title = null, $sourceObject = 'Group', $keyField = 'ID', $labelField = 'Title',
+ public function __construct($name, $title = null, $sourceObject = 'Group', $keyField = 'ID', $labelField = 'TreeTitle',
$showSearch = false) {
$this->sourceObject = $sourceObject;

0 comments on commit abfb3c7

Please sign in to comment.