mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
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…
x
Reference in New Issue
Block a user