Skip to content

Commit

Permalink
feat: remove duplicate code that outputs a postlink
Browse files Browse the repository at this point in the history
Closes #212
  • Loading branch information
josegonzalez committed Feb 5, 2018
1 parent acf81af commit a7f6a7e
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 a7f6a7e

Please sign in to comment.