MINOR: Updated TableListField to accept any list type, not just a DataObjectSet.

This commit is contained in:
ajshort 2011-05-03 12:22:18 +10:00
parent 04e30243d0
commit 14c57ae082

View File

@ -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 {