mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-06-08 16:22:04 -04:00
parent
251798ef3a
commit
52b3abb929
1 changed files with 3 additions and 2 deletions
|
|
@ -50,8 +50,8 @@ class Simulation
|
|||
public static function fromSession(SessionNamespace $session, $sessionKey = null)
|
||||
{
|
||||
return static::create()
|
||||
->persistToSession($session)
|
||||
->setSessionKey($sessionKey);
|
||||
->setSessionKey($sessionKey)
|
||||
->persistToSession($session);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -76,6 +76,7 @@ class Simulation
|
|||
public function persistToSession(SessionNamespace $session)
|
||||
{
|
||||
$this->session = $session;
|
||||
$this->simulations = $this->session->get($this->sessionKey, array());
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue