Resolve Performance issues with TagField

TagField hydrates the entire result set because a parent class calls `toArray()` on the $source. 
This fix changes the source to an empty array, so no such manipulation can be made.
This commit is contained in:
Simon Gow 2018-09-06 18:16:06 +12:00 committed by GitHub
parent 705c7fb525
commit 3797049a31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,7 @@ class TagField extends DropdownField
{
$this->setSourceList($source);
$this->setTitleField($titleField);
parent::__construct($name, $title, $source, $value);
parent::__construct($name, $title, [], $value);
}
/**