Module: check_mk
Branch: master
Commit: c425af34d5d32406617d495992747f942289fc55
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c425af34d5d324…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Jun 10 10:00:57 2014 +0200
FIX Fixed exception in HW/SW inventory search dialog
Fixed "KeyError: 'invswpac_package_version'" exception when opening this
dialog.
---
.werks/818 | 8 ++++++++
ChangeLog | 3 +++
web/plugins/views/inventory.py | 1 +
3 files changed, 12 insertions(+)
diff --git a/.werks/818 b/.werks/818
new file mode 100644
index 0000000..f06b90f
--- /dev/null
+++ b/.werks/818
@@ -0,0 +1,8 @@
+Title: Fixed exception in HW/SW inventory search dialog
+Level: 1
+Component: inv
+Version: 1.2.5i4
+Date: 1402387217
+Class: fix
+
+Fixed "KeyError: 'invswpac_package_version'" exception when opening
this dialog.
diff --git a/ChangeLog b/ChangeLog
index 3568bdf..f527abc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -23,6 +23,9 @@
Event Console:
* 0816 States of events can now be set by patterns...
+ HW/SW-Inventory:
+ * 0818 FIX: Fixed exception in HW/SW inventory search dialog...
+
1.2.5i3:
Core & Setup:
diff --git a/web/plugins/views/inventory.py b/web/plugins/views/inventory.py
index 7764ae8..356525e 100644
--- a/web/plugins/views/inventory.py
+++ b/web/plugins/views/inventory.py
@@ -812,6 +812,7 @@ for name, title, sortfunc in [
( "summary", _("Summary"), cmp ),
( "arch", _("CPU Architecture"), cmp ),
( "package_type", _("Type"), cmp ),
+ ( "package_version", _("Package Version"), cmp_version ),
( "version", _("Version"), cmp_version ),
( "install_date", _("Install Date"), cmp ),
]: