Skip to content

Commit

Permalink
Merge pull request #233 from FriendsOfCake/212-remove-duplicate-code
Browse files Browse the repository at this point in the history
feat: remove duplicate code that outputs a postlink
  • Loading branch information
ADmad authored Feb 5, 2018
2 parents acf81af + a7f6a7e commit 3787db0
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/Template/Element/actions.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit 3787db0

Please sign in to comment.