mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #3573 from MichaelCSLWeb/patch-2
Update DropdownField.php
This commit is contained in:
commit
a6e8b93bcd
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* public function getCMSFields() {
|
* public function getCMSFields() {
|
||||||
* $fields = parent::getCMSFields();
|
* $fields = parent::getCMSFields();
|
||||||
* $field = new DropdownField('GalleryID', 'Gallery', Gallery::get()->map('ID', 'Title'));
|
* $field = DropdownField::create('GalleryID', 'Gallery', Gallery::get()->map('ID', 'Title'));
|
||||||
* $field->setEmptyString('(Select one)');
|
* $field->setEmptyString('(Select one)');
|
||||||
* $fields->addFieldToTab('Root.Content', $field, 'Content');
|
* $fields->addFieldToTab('Root.Content', $field, 'Content');
|
||||||
* </code>
|
* </code>
|
||||||
|
Loading…
Reference in New Issue
Block a user