From 71fe12393ddb3a7790aecbe50c371b31724ceee7 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Tue, 21 Nov 2017 11:30:36 +0100 Subject: [PATCH] Persist X-Icinga-WindowId across auto-refreshes --- library/Icinga/Web/Request.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/Icinga/Web/Request.php b/library/Icinga/Web/Request.php index 88504225f..bedcd44d7 100644 --- a/library/Icinga/Web/Request.php +++ b/library/Icinga/Web/Request.php @@ -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; } }