Prevents doubling up of dataset

This commit is contained in:
Samuel Georges 2015-03-25 19:33:19 +11:00
parent 8d93c9ffab
commit 44b037c21c
1 changed files with 2 additions and 0 deletions

View File

@ -138,6 +138,8 @@ class DataTable extends FormWidgetBase
// all records at once. -ab
$records = $this->getLoadValue() ?: [];
$dataSource->purge();
$dataSource->initRecords((array) $records);
}