We probably don't need to call this twice

Refs f8d9667f0e
This commit is contained in:
Samuel Georges 2017-07-13 19:15:47 +10:00
parent 8002c1010b
commit 358a6337df
1 changed files with 1 additions and 5 deletions

View File

@ -123,10 +123,6 @@ class RecordFinder extends FormWidgetBase
'recordsPerPage',
]);
if ($this->formField->disabled) {
$this->previewMode = true;
}
if (post('recordfinder_flag')) {
$this->listWidget = $this->makeListWidget();
$this->listWidget->bindToController();
@ -179,7 +175,7 @@ class RecordFinder extends FormWidgetBase
public function prepareVars()
{
$this->relationModel = $this->getLoadValue();
if ($this->formField->disabled) {
$this->previewMode = true;
}