Skip to content

Commit

Permalink
fix #877
Browse files Browse the repository at this point in the history
  • Loading branch information
jqhph committed Dec 24, 2020
1 parent 2df048e commit 57d5933
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion resources/views/form/container.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@
{!! $form->renderFooter() !!}

@foreach($form->hiddenFields() as $field)
{!! $field->render() !!}
@if(! $field->hasAttribute(Dcat\Admin\Form\Field::BUILD_IGNORE))
{!! $field->render() !!}
@endif
@endforeach
2 changes: 1 addition & 1 deletion src/Form/BlockForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function pushField(Field $field)
{
$field->attribute(Field::BUILD_IGNORE, true);

$this->form->builder()->pushField((clone $field)->display(false));
$this->form->builder()->pushField($field);
$this->fields->push($field);

if ($this->layout()->hasColumns()) {
Expand Down

0 comments on commit 57d5933

Please sign in to comment.