From 14c57ae082fbca1ddbe2b5aebf1c895dda2af293 Mon Sep 17 00:00:00 2001 From: ajshort Date: Tue, 3 May 2011 12:22:18 +1000 Subject: [PATCH] MINOR: Updated TableListField to accept any list type, not just a DataObjectSet. --- forms/TableListField.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forms/TableListField.php b/forms/TableListField.php index 0e93cd4a5..0dc26ab2d 100644 --- a/forms/TableListField.php +++ b/forms/TableListField.php @@ -235,8 +235,8 @@ class TableListField extends FormField { $sourceSort = null, $sourceJoin = null) { if($sourceClass) { - // You can optionally pass a DataList/DataObjectSet - if($sourceClass instanceof DataObjectSet) { + // You can optionally pass a list + if($sourceClass instanceof SS_List) { $this->dataList = $sourceClass; } else {