mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-05-28 04:34:08 -04:00
Controller: do not load states for every action
This commit is contained in:
parent
a63ac99ac5
commit
ced3baa11b
2 changed files with 1 additions and 2 deletions
|
|
@ -18,7 +18,7 @@ class Businessprocess_ProcessController extends Controller
|
|||
|
||||
$this->view->tabs = $this->tabs()->activate('show');
|
||||
$this->view->title = 'Business Processes';
|
||||
$bp = $this->loadBp();
|
||||
$bp = $this->loadBp()->retrieveStatesFromBackend();
|
||||
if ($process = $this->params->get('process')) {
|
||||
$this->view->bp = $bp->getNode($process);
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -74,7 +74,6 @@ class Controller extends ModuleActionController
|
|||
}
|
||||
}
|
||||
|
||||
$bp->retrieveStatesFromBackend();
|
||||
return $bp;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue