From 2a3fdd16a4aa938e9cdaad65f3380a3a91b92aee Mon Sep 17 00:00:00 2001 From: ajshort Date: Thu, 5 May 2011 20:40:51 +1000 Subject: [PATCH] MINOR: Added a default "ID" parameter to ArrayList->column(). --- model/ArrayList.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/ArrayList.php b/model/ArrayList.php index f62bac282..19d8a909a 100644 --- a/model/ArrayList.php +++ b/model/ArrayList.php @@ -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);