Permalink
Browse files

MINOR Added GridFieldTitle to Group->getCMSFields() to allow addition…

… of new records (currently that button is hardcoded in the title component)
  • Loading branch information...
1 parent 424da6a commit c4e04899b6288d8e35b9025b77844f220aaa3bf4 @chillu chillu committed Mar 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 security/Group.php
View
@@ -62,7 +62,7 @@ public function getCMSFields() {
Requirements::javascript(SAPPHIRE_DIR . '/javascript/PermissionCheckboxSetField.js');
$config = new GridFieldConfig_ManyManyEditor('FirstName', 20);
- $config->addComponents(new GridFieldExporter());
+ $config->addComponents(new GridFieldExporter(), new GridFieldTitle());
$config->getComponentByType('GridFieldRelationAdd')
->setResultsFormat('$Title ($Email)')->setSearchFields(array('FirstName', 'Surname', 'Email'));
$memberList = new GridField('Members','Members', $this->Members(), $config);

0 comments on commit c4e0489

Please sign in to comment.