[icinga-checkins] icinga.org: icingaweb2-module-director/master: Importsource: drop run action

git at icinga.org git at icinga.org
Mon Jun 27 09:17:10 CEST 2016


Module: icingaweb2-module-director
Branch: master
Commit: 6e4940d7124659d931b2cf729a85f9a9233772b6
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=6e4940d7124659d931b2cf729a85f9a9233772b6

Author: Thomas Gelf <thomas at gelf.net>
Date:   Sun Jun 26 15:56:35 2016 +0200

Importsource: drop run action

---

 application/controllers/ImportsourceController.php |   19 -------------------
 1 file changed, 19 deletions(-)

diff --git a/application/controllers/ImportsourceController.php b/application/controllers/ImportsourceController.php
index e826eac..b8a6049 100644
--- a/application/controllers/ImportsourceController.php
+++ b/application/controllers/ImportsourceController.php
@@ -57,29 +57,10 @@ class ImportsourceController extends ActionController
         $this->setViewScript('object/form');
     }
 
-    public function runAction()
-    {
-        $id = $this->params->get('id');
-        $import = new Import(ImportSource::load($id, $this->db()));
-        if ($runId = $import->run()) {
-            Notification::success('Import succeeded');
-            $this->redirectNow(Url::fromPath('director/importrun', array('id' => $runId)));
-        } else {
-            Notification::success('Import skipped, no changes detected');
-            $this->redirectNow('director/list/importrun');
-        }
-    }
-
     public function previewAction()
     {
         $id = $this->params->get('id');
 
-        $this->view->addLink = $this->view->qlink(
-            $this->translate('Run'),
-            'director/importsource/run',
-            array('id' => $id)
-        );
-
         $source = ImportSource::load($id, $this->db());
         $this->prepareTabs($id)->activate('preview');
 



More information about the icinga-checkins mailing list