mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR: Added a default "ID" parameter to ArrayList->column().
This commit is contained in:
parent
3f132a105b
commit
2a3fdd16a4
@ -148,7 +148,7 @@ class ArrayList extends ViewableData implements SS_List {
|
||||
}
|
||||
}
|
||||
|
||||
public function column($field) {
|
||||
public function column($field = 'ID') {
|
||||
$result = array();
|
||||
foreach ($this->array as $item) {
|
||||
$result[] = $this->extract($item, $field);
|
||||
|
Loading…
Reference in New Issue
Block a user