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

Unused code in getItemFormData()

    XMLWordPrintable

    Details

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: