From 0c3b7b56fa3f018d05fb2958d9b9296b7e2726b0 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 5 May 2018 17:47:01 -0400 Subject: [PATCH 1/2] fix: remove deprecated call to Form::inputs() --- src/Template/Element/form.ctp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Template/Element/form.ctp b/src/Template/Element/form.ctp index aaa731c6..db9413f1 100644 --- a/src/Template/Element/form.ctp +++ b/src/Template/Element/form.ctp @@ -18,7 +18,7 @@ if ($this->exists('form.before_create')) { element('form/tabs') ?> - Form->inputs($fields, ['legend' => false]) ?> + Form->controls($fields, ['legend' => false]) ?> From 75575c6a2ddcb4c432c00d8d596d81a0b219f9d3 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 5 May 2018 17:48:00 -0400 Subject: [PATCH 2/2] fix: drop another deprecated Form::inputs() call --- src/Template/Element/form/tabs.ctp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Template/Element/form/tabs.ctp b/src/Template/Element/form/tabs.ctp index 44cef242..b22706ba 100644 --- a/src/Template/Element/form/tabs.ctp +++ b/src/Template/Element/form/tabs.ctp @@ -17,7 +17,7 @@ use Cake\Utility\Text; role="tabpanel" class="tab-pane " > - Form->inputs( + Form->controls( array_intersect_key($fields, array_flip($groupFields)), ['legend' => false] ) ?>