diff options
author | Andrejs Griščenko <andrejs.griscenko@zabbix.com> | 2022-06-20 17:35:56 +0300 |
---|---|---|
committer | Andrejs Griščenko <andrejs.griscenko@zabbix.com> | 2022-06-20 17:35:56 +0300 |
commit | 939bc3ee75131daf8f3c7a90e9e0d7c956da36e3 (patch) | |
tree | aa603befbeb942d58a1f5c6098e54d55f0dbbaff | |
parent | c488a211647f6b53b9c7423678f6c39601cb1db2 (diff) | |
parent | 8b6cef3c38bd0906ddb65981887762efd99f018a (diff) |
..F....... [ZBX-20960] fixed SVG graph widget throwing error when attempting to plot item with valid user macro defined in history storage period
* commit '8b6cef3c38bd0906ddb65981887762efd99f018a':
.D........ [ZBX-20960] fixed changelog message
.D........ [ZBX-20960] added changelog file
..F....... [ZBX-20960] fixed dashboard SVG graph widget throws error when attempting to plot item with valid user macro defined in history storage period
-rw-r--r-- | ChangeLog.d/bugfix/ZBX-20960 | 1 | ||||
-rw-r--r-- | ui/include/classes/helpers/CSvgGraphHelper.php | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ChangeLog.d/bugfix/ZBX-20960 b/ChangeLog.d/bugfix/ZBX-20960 new file mode 100644 index 00000000000..8c0c78d7e1b --- /dev/null +++ b/ChangeLog.d/bugfix/ZBX-20960 @@ -0,0 +1 @@ +..F....... [ZBX-20960] fixed SVG graph widget throwing error when attempting to plot item with valid user macro defined in history storage period (agriscenko) diff --git a/ui/include/classes/helpers/CSvgGraphHelper.php b/ui/include/classes/helpers/CSvgGraphHelper.php index 44bc0b184f6..bb71aff668e 100644 --- a/ui/include/classes/helpers/CSvgGraphHelper.php +++ b/ui/include/classes/helpers/CSvgGraphHelper.php @@ -536,8 +536,7 @@ class CSvgGraphHelper { if ($hosts) { $items = API::Item()->get([ - 'output' => [ - 'itemid', 'name', 'history', 'trends', 'units', 'value_type'], + 'output' => ['itemid', 'hostid', 'name', 'history', 'trends', 'units', 'value_type'], 'selectHosts' => ['name'], 'hostids' => array_keys($hosts), 'webitems' => true, |