Module: check_mk
Branch: master
Commit: f7bd3cdaaa7c973fcf28607288cc7fbd4bd687cf
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f7bd3cdaaa7c97…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Sep 9 16:31:21 2016 +0200
Fixed non working bulk discovery and other bulk actions
---
web/htdocs/htmllib.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index c911e1a..5a7e597 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -1816,9 +1816,9 @@ class html(object):
return self.current_transid
- # All generated transids are saved per user. They are stored
- # in the transids and per user only up to 20 transids are kept.
- # Transaction ids older than one day are deleted.
+ # All generated transids are saved per user. They are stored in the transids.mk.
+ # Per user only up to 20 transids of the already existing ones are kept. The
transids
+ # generated on the current page are all kept. IDs older than one day are deleted.
def store_new_transids(self):
if self.new_transids:
valid_ids = self.load_transids(lock = True)
@@ -1828,7 +1828,7 @@ class html(object):
timestamp, rand = valid_id.split("/")
if now - int(timestamp) < 86400: # one day
cleared_ids.append(valid_id)
- self.save_transids((cleared_ids + self.new_transids)[-20:], unlock = True)
+ self.save_transids((cleared_ids[-20:] + self.new_transids), unlock = True)
# Remove the used transid from the list of valid ones