Update DropdownField.php

This commit is contained in:
Michael 2014-10-23 11:42:59 +01:00
parent 6622d066fd
commit f131f0f561

View File

@ -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>