Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-6689

Unused code in getItemFormData()

XMLWordPrintable

      In forms.inc.php:1210 in the getItemFormData() function there's a block of code, that returns the available host groups. They don't seem to be used anywhere after.

      // host groups
      $data['hostGroups'] = API::HostGroup()->get(array(
      'editable' => true,
      'output' => API_OUTPUT_EXTEND
      ));
      order_result($data['hostGroups'], 'name');

      This code should be removed.

            Unassigned Unassigned
            jelisejev Pavels Jelisejevs (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: