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

Minor typo in sources - 'templateids' => $hostids,

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.2
    • Fix Version/s: 2.0.3rc1, 2.1.0
    • Component/s: API (A)
    • Labels:
      None

      Description

      I suppose there is a copy-paste fail

      ./api/classes/Chost.php
      In a function massRemove:

      if (isset($data['templateids_clear'])) {
      $options = array(
      'templateids' => $hostids,
      'templateids_clear' => zbx_toArray($data['templateids_clear'])

      Note:
      'templateids' => $hostids,
      but probably should be:
      'hostids' => $hostids,

      Also please add an option 'templateids_clear' to the function description (PHP doc)

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            zalex_ua Oleksii Zagorskyi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: