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:
parent
e6d79057c6
commit
f8d9667f0e
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue