Controller: do not load states for every action

This commit is contained in:
Thomas Gelf 2015-03-02 18:22:42 +01:00
parent a63ac99ac5
commit ced3baa11b
2 changed files with 1 additions and 2 deletions

View file

@ -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 {

View file

@ -74,7 +74,6 @@ class Controller extends ModuleActionController
}
}
$bp->retrieveStatesFromBackend();
return $bp;
}