Skip to content

Commit

Permalink
File and image fields called \Illuminate\Html\FormBuilder::file() inc…
Browse files Browse the repository at this point in the history
…orrently. They didn't pass the HTML attributes array correctly.
  • Loading branch information
dsge committed Jul 23, 2015
1 parent 6584bc2 commit 13f6c2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SleepingOwl/Html/FormBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public function imageGroup($name, $label, ModelWithImageFieldsInterface $model,
$innerContent .= '<div class="clearfix"></div>';
$content .= $this->html->tag('div', ['class' => 'img-container'], $innerContent);
}
$content .= $this->file($name, null, $options);
$content .= $this->file($name, $options);
return $this->makeGroup($name, $label, $content);
}

Expand All @@ -325,7 +325,7 @@ public function fileGroup($name, $label, ModelWithFileFieldsInterface $model, ar
$file = $this->html->tag('div', ['class' => 'thumbnail file-info'], $link);
$content .= $this->html->tag('div', [], $file);
}
$content .= $this->file($name, null, $options);
$content .= $this->file($name, $options);
return $this->makeGroup($name, $label, $content);
}

Expand Down

0 comments on commit 13f6c2f

Please sign in to comment.