Skip to content

Commit

Permalink
Merge pull request #246 from FriendsOfCake/josegonzalez-patch-1
Browse files Browse the repository at this point in the history
Remove more deprecated code
  • Loading branch information
josegonzalez authored May 5, 2018
2 parents dd5e9f6 + 75575c6 commit 213cab4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Template/Element/form.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if ($this->exists('form.before_create')) {
<?php if ($formTabGroups) : ?>
<?= $this->element('form/tabs') ?>
<?php else : ?>
<?= $this->Form->inputs($fields, ['legend' => false]) ?>
<?= $this->Form->controls($fields, ['legend' => false]) ?>
<?php endif ?>
</div>

Expand Down
2 changes: 1 addition & 1 deletion src/Template/Element/form/tabs.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use Cake\Utility\Text;
role="tabpanel"
class="tab-pane <?= $group === $firstTab ? 'active' : '' ?>"
>
<?= $this->Form->inputs(
<?= $this->Form->controls(
array_intersect_key($fields, array_flip($groupFields)),
['legend' => false]
) ?>
Expand Down

0 comments on commit 213cab4

Please sign in to comment.