ObjectController: remove legacy delete tab

This commit is contained in:
Thomas Gelf 2015-10-15 23:55:13 +02:00
parent e88b7af8e9
commit f122fc3eb1
1 changed files with 1 additions and 4 deletions

View File

@ -43,10 +43,6 @@ abstract class ObjectController extends ActionController
'url' => sprintf('director/%s/history', $type),
'urlParams' => $params,
'label' => $this->translate('History')
))->add('delete', array(
'url' => sprintf('director/%s/delete', $type),
'urlParams' => $params,
'label' => $this->translate('Delete')
));
} else {
$this->getTabs()->add('add', array(
@ -73,6 +69,7 @@ abstract class ObjectController extends ActionController
$this->render('object/show', null, true);
}
// TODO: Remove or leave here for API access only. Probably not needed.
public function deleteAction()
{
$type = $this->getType();