mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Default TreeDropdownField to TreeTitle
Same behaviour as in 2.x. All common elements displayed in this field (SiteTree, Group, File) have a TreeTitle accessor.
This commit is contained in:
parent
61cc033304
commit
abfb3c7095
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user