Support field being disabled in filterFields()

Completes support for the underlying field object being disabled in model's filterFields() method by rechecking status immediately before rendering.
This commit is contained in:
Luke Towers 2017-06-22 09:45:29 -06:00 committed by GitHub
parent e6d79057c6
commit f8d9667f0e

View File

@ -179,6 +179,10 @@ class RecordFinder extends FormWidgetBase
public function prepareVars()
{
$this->relationModel = $this->getLoadValue();
if ($this->formField->disabled) {
$this->previewMode = true;
}
$this->vars['value'] = $this->getKeyValue();
$this->vars['field'] = $this->formField;