diff options
author | Andrejs Verza <andrejs.verza@zabbix.com> | 2021-02-24 23:44:10 +0300 |
---|---|---|
committer | Andrejs Verza <andrejs.verza@zabbix.com> | 2021-02-24 23:44:10 +0300 |
commit | 8fa80cd373a296e3d932964f07360b9ecc02e363 (patch) | |
tree | 87228f356804b4b4def27c3b0ce3606cb9a0b061 /ui | |
parent | 55551befdbe204f9d039938f7512d804e457a418 (diff) |
A......... [ZBXNEXT-6309] fixed coding style in CDashboardGeneral::addRelatedObjects method
Diffstat (limited to 'ui')
-rw-r--r-- | ui/include/classes/api/services/CDashboardGeneral.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/ui/include/classes/api/services/CDashboardGeneral.php b/ui/include/classes/api/services/CDashboardGeneral.php index 3eab6fdb4e2..de24079a2db 100644 --- a/ui/include/classes/api/services/CDashboardGeneral.php +++ b/ui/include/classes/api/services/CDashboardGeneral.php @@ -862,8 +862,10 @@ abstract class CDashboardGeneral extends CApiService { } unset($db_page); - $db_widgets = API::getApiService()->select('widget', [ - 'output' => API_OUTPUT_EXTEND, + $db_widgets = DB::select('widget', [ + 'output' => ['widgetid', 'type', 'name', 'x', 'y', 'width', 'height', 'view_mode', + 'dashboard_pageid' + ], 'filter' => ['dashboard_pageid' => array_keys($db_pages)], 'preservekeys' => true ]); @@ -874,8 +876,10 @@ abstract class CDashboardGeneral extends CApiService { } unset($db_widget); - $db_fields = API::getApiService()->select('widget_field', [ - 'output' => API_OUTPUT_EXTEND, + $db_fields = DB::select('widget_field', [ + 'output' => ['widget_fieldid', 'widgetid', 'type', 'name', 'value_int', 'value_str', + 'value_groupid', 'value_hostid', 'value_itemid', 'value_graphid', 'value_sysmapid' + ], 'filter' => [ 'widgetid' => array_keys($db_widgets), 'type' => array_keys(self::WIDGET_FIELD_TYPE_COLUMNS) |