Skip to content

Commit

Permalink
MINOR Rename argument to GridFieldDeleteAction to match the property
Browse files Browse the repository at this point in the history
name $removeRelation
MINOR Tidy up coding standards in GridFieldDeleteAction
  • Loading branch information
Sean Harvey committed Mar 22, 2012
1 parent ff4c820 commit 239b4a0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions forms/gridfield/GridFieldDeleteAction.php
Expand Up @@ -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;
}

/**
Expand All @@ -39,8 +39,9 @@ public function __construct($unlinkRelation = false) {
* @param array $columns
*/
public function augmentColumns($gridField, &$columns) {
if(!in_array('Actions', $columns))
if(!in_array('Actions', $columns)) {
$columns[] = 'Actions';
}
}

/**
Expand Down

0 comments on commit 239b4a0

Please sign in to comment.