diff --git a/Widget.php b/Widget.php index d0898ec..34289c9 100644 --- a/Widget.php +++ b/Widget.php @@ -281,7 +281,7 @@ public function run() 'selector' => $this->getSelector(), 'input' => $input, 'paramName' => $this->paramName, - 'value' => $this->model->{$this->attributeName}, + 'value' => $this->hasModel() ? $this->model->{$this->attributeName} : $this->value, 'preview' => $this->preview, 'crop' => $this->crop, 'browseGlyphicon' => $this->browseGlyphicon