Skip to content

Commit

Permalink
Fix field config not being used when using form tabs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Aug 3, 2017
1 parent 754c20a commit 57be2b0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Template/Element/form/tabs.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ use Cake\Utility\Text;
role="tabpanel"
class="tab-pane <?= $group === $firstTab ? 'active' : '' ?>"
>
<?= $this->Form->inputs($groupFields, ['legend' => false]) ?>
<?= $this->Form->inputs(
array_intersect_key($fields, array_flip($groupFields)),
['legend' => false]
) ?>
</div>
<?php endforeach ?>
</div>
Expand Down

0 comments on commit 57be2b0

Please sign in to comment.