mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
ObjectController: remove legacy delete action
This commit is contained in:
parent
fa85bf071c
commit
a58978099b
@ -83,27 +83,6 @@ abstract class ObjectController extends ActionController
|
|||||||
$this->render('object/show', null, true);
|
$this->render('object/show', null, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Remove or leave here for API access only. Probably not needed.
|
|
||||||
public function deleteAction()
|
|
||||||
{
|
|
||||||
$type = $this->getType();
|
|
||||||
$this->getTabs()->activate('delete');
|
|
||||||
|
|
||||||
$this->view->form = $form = $this->loadForm(
|
|
||||||
'icingaDeleteObject'
|
|
||||||
)->setObject($this->object);
|
|
||||||
|
|
||||||
$url = Url::fromPath(sprintf('director/%ss', $type));
|
|
||||||
$form->setSuccessUrl($url);
|
|
||||||
|
|
||||||
$this->view->title = sprintf(
|
|
||||||
$this->translate('Delete Icinga %s'),
|
|
||||||
ucfirst($type)
|
|
||||||
);
|
|
||||||
$this->view->form->handleRequest();
|
|
||||||
$this->render('object/form', null, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function editAction()
|
public function editAction()
|
||||||
{
|
{
|
||||||
$object = $this->object;
|
$object = $this->object;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user