Fixed: Dont parse meta when loadValue is not numeric

This commit is contained in:
Philipp Lang 2020-10-30 00:12:01 +00:00
parent b9283a46c4
commit fa6a328860
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ class Responsiveimage extends FormWidgetBase
$this->vars['minWidth'] = $this->minWidth ?: '0'; $this->vars['minWidth'] = $this->minWidth ?: '0';
$this->vars['name'] = $this->formField->getName(); $this->vars['name'] = $this->formField->getName();
$this->vars['value'] = is_numeric($this->getLoadValue()) ? $this->getLoadValue() : 'null'; $this->vars['value'] = is_numeric($this->getLoadValue()) ? $this->getLoadValue() : 'null';
$this->vars['meta'] = $this->getLoadValue() $this->vars['meta'] = is_numeric($this->getLoadValue())
? $this->vueParam(app(UploadStorage::class)->getFileData($this->getLoadValue())) ? $this->vueParam(app(UploadStorage::class)->getFileData($this->getLoadValue()))
: 'null'; : 'null';
$this->vars['model'] = $this->model; $this->vars['model'] = $this->model;