Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUGFIX Ensure "Add [modelClass]" is shown instead of using the field …

…name of the GridField, partially reverts 16982ba which broke breadcrumbs in SecurityAdmin
  • Loading branch information...
commit 74d444cf2fd54b72293830addae37f2250315b86 1 parent 497aa9b
@halkyon halkyon authored
View
4 admin/code/SecurityAdmin.php
@@ -68,7 +68,7 @@ public function getEditForm($id = null, $fields = null) {
if($record && !$record->canView()) return Security::permissionFailure($this);
$memberList = GridField::create(
- 'Member',
+ 'Members',
false,
DataList::create('Member'),
$memberListConfig = GridFieldConfig_RecordEditor::create()
@@ -77,7 +77,7 @@ public function getEditForm($id = null, $fields = null) {
$memberListConfig->getComponentByType('GridFieldDetailForm')->setValidator(new Member_Validator());
$groupList = GridField::create(
- 'Group',
+ 'Groups',
false,
DataList::create('Group'),
GridFieldConfig_RecordEditor::create()
View
2  forms/gridfield/GridFieldAddNewButton.php
@@ -15,7 +15,7 @@ public function __construct($targetFragment = 'before') {
public function getHTMLFragments($gridField) {
$data = new ArrayData(array(
'NewLink' => Controller::join_links($gridField->Link('item'), 'new'),
- 'ButtonName' => _t('GridField.Add', 'Add {name}', array('name' => $gridField->name)),
+ 'ButtonName' => _t('GridField.Add', 'Add {name}', array('name' => $gridField->getModelClass())),
));
return array(
$this->targetFragment => $data->renderWith('GridFieldAddNewbutton'),
Please sign in to comment.
Something went wrong with that request. Please try again.