Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorIvo Kurzemnieks <ivo.kurzemnieks@zabbix.com>2021-05-25 19:11:40 +0300
committerIvo Kurzemnieks <ivo.kurzemnieks@zabbix.com>2021-05-25 19:11:40 +0300
commit9730e3ea47ae394159b07b57a17b763f50aac5bd (patch)
treee88d6fd0fd184a5b7ad20072afe8cb97a3b8bd0d /ui
parent69c1c24fbafeaa1dce65f6ad1afea453605e4ffc (diff)
..F....... [ZBX-19446] fixed item prototype massupdate form (solution 1)
Diffstat (limited to 'ui')
-rw-r--r--ui/app/controllers/CControllerPopupMassupdateItem.php26
1 files changed, 0 insertions, 26 deletions
diff --git a/ui/app/controllers/CControllerPopupMassupdateItem.php b/ui/app/controllers/CControllerPopupMassupdateItem.php
index 2a5238468ca..1c18ed26119 100644
--- a/ui/app/controllers/CControllerPopupMassupdateItem.php
+++ b/ui/app/controllers/CControllerPopupMassupdateItem.php
@@ -97,26 +97,6 @@ class CControllerPopupMassupdateItem extends CController {
}
/**
- * Get array of updated items or item prototypes hosts or templates.
- *
- * @return array
- */
- protected function getHostsOrTemplates(): array {
- $options = ['itemids' => $this->getInput('ids')];
-
- if ($this->getInput('context') === 'host') {
- $options['output'] = ['hostid'];
- $result = API::Host()->get($options);
- }
- else {
- $options['output'] = ['templateid'];
- $result = CArrayHelper::renameObjectsKeys(API::Template()->get($options), ['templateid' => 'hostid']);
- }
-
- return $result;
- }
-
- /**
* Get array of updated items or item prototypes.
*
* @return array
@@ -248,12 +228,6 @@ class CControllerPopupMassupdateItem extends CController {
}
}
- $hosts = $this->getHostsOrTemplates();
-
- if ($prototype && $hosts) {
- throw new Exception();
- }
-
if (array_key_exists('headers', $input) && $input['headers']) {
$headers = (count($input['headers']['name']) == count($input['headers']['value']))
? array_combine($input['headers']['name'], $input['headers']['value'])