From a7f6a7e3940dedbba4e70fffb764277985afb183 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 4 Feb 2018 20:49:44 -0500 Subject: [PATCH] feat: remove duplicate code that outputs a postlink Closes #212 --- src/Template/Element/actions.ctp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/Template/Element/actions.ctp b/src/Template/Element/actions.ctp index 9baf76c4..e944798f 100644 --- a/src/Template/Element/actions.ctp +++ b/src/Template/Element/actions.ctp @@ -82,15 +82,6 @@ foreach ($actionGroups['primary'] as $action) { } $config['options']['class'] = ['btn btn-default']; - if ($config['method'] !== 'GET') { - echo $this->Form->postLink( - $config['title'], - $config['url'], - $config['options'] - ); - continue; - } - echo $this->element('action-button', ['config' => $config]); } unset($actionGroups['primary']);