mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Rename argument to GridFieldDeleteAction to match the property
name $removeRelation MINOR Tidy up coding standards in GridFieldDeleteAction
This commit is contained in:
parent
ff4c82039d
commit
239b4a01f7
@ -26,10 +26,10 @@ class GridFieldDeleteAction implements GridField_ColumnProvider, GridField_Actio
|
||||
|
||||
/**
|
||||
*
|
||||
* @param boolean $unlinkRelation - true if removing the item from the list, but not deleting it
|
||||
* @param boolean $removeRelation - true if removing the item from the list, but not deleting it
|
||||
*/
|
||||
public function __construct($unlinkRelation = false) {
|
||||
$this->removeRelation = $unlinkRelation;
|
||||
public function __construct($removeRelation = false) {
|
||||
$this->removeRelation = $removeRelation;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -39,9 +39,10 @@ class GridFieldDeleteAction implements GridField_ColumnProvider, GridField_Actio
|
||||
* @param array $columns
|
||||
*/
|
||||
public function augmentColumns($gridField, &$columns) {
|
||||
if(!in_array('Actions', $columns))
|
||||
if(!in_array('Actions', $columns)) {
|
||||
$columns[] = 'Actions';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Return any special attributes that will be used for FormField::createTag()
|
||||
|
Loading…
Reference in New Issue
Block a user