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

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

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.0.3rc1, 2.1.0
    • 2.0.2
    • API (A)
    • None

      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)

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

              Created:
              Updated:
              Resolved: