From fa6a3288606a6c814b054221edaa0d6e754ac2d1 Mon Sep 17 00:00:00 2001 From: Philipp Lang Date: Fri, 30 Oct 2020 00:12:01 +0000 Subject: [PATCH] Fixed: Dont parse meta when loadValue is not numeric --- formwidgets/Responsiveimage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formwidgets/Responsiveimage.php b/formwidgets/Responsiveimage.php index 4129c60..df29fbf 100644 --- a/formwidgets/Responsiveimage.php +++ b/formwidgets/Responsiveimage.php @@ -80,7 +80,7 @@ class Responsiveimage extends FormWidgetBase $this->vars['minWidth'] = $this->minWidth ?: '0'; $this->vars['name'] = $this->formField->getName(); $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())) : 'null'; $this->vars['model'] = $this->model;