Persist X-Icinga-WindowId across auto-refreshes

This commit is contained in:
Alexander A. Klimov 2017-11-21 11:30:36 +01:00
parent 745674dbe4
commit 71fe12393d
1 changed files with 3 additions and 1 deletions

View File

@ -114,8 +114,10 @@ class Request extends Zend_Controller_Request_Http
public function protectId($id)
{
if (! isset($this->uniqueId)) {
$this->uniqueId = Window::generateId();
$windowId = $this->getHeader('X-Icinga-WindowId');
$this->uniqueId = empty($windowId) ? Window::generateId() : $windowId;
}
return $id . '-' . $this->uniqueId;
}
}