diff options
author | Andrejs Verza <andrejs.verza@zabbix.com> | 2021-02-22 23:04:20 +0300 |
---|---|---|
committer | Andrejs Verza <andrejs.verza@zabbix.com> | 2021-02-22 23:04:20 +0300 |
commit | ee252c06c664ca8388523f74d6ad9c5d9eecb1f5 (patch) | |
tree | a731661b1b16d2e90352c9135969b25e166d15e8 /ui/app/controllers | |
parent | 8e37913057882da1c9d79044d244e14de7581009 (diff) |
..F....... [ZBXNEXT-6309] fixed widget pasting
Diffstat (limited to 'ui/app/controllers')
-rw-r--r-- | ui/app/controllers/CControllerDashboardWidgetSanitize.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/app/controllers/CControllerDashboardWidgetSanitize.php b/ui/app/controllers/CControllerDashboardWidgetSanitize.php index d46abb382c6..623c9e71275 100644 --- a/ui/app/controllers/CControllerDashboardWidgetSanitize.php +++ b/ui/app/controllers/CControllerDashboardWidgetSanitize.php @@ -70,7 +70,8 @@ class CControllerDashboardWidgetSanitize extends CController { $fields = $form->fieldsToApi(); if ($this->context === CWidgetConfig::CONTEXT_DASHBOARD) { - $fields = CDashboardHelper::unsetInaccessibleFields([['fields' => $fields]])[0]['fields']; + $fields = CDashboardHelper::unsetInaccessibleFields([['widgets' => [['fields' => $fields]]]]); + $fields = $fields[0]['widgets'][0]['fields']; } $output = [ |