Some problems with the drule API

XMLWordPrintable

    • Type: Incident report
    • Resolution: Fixed
    • Priority: Minor
    • 2.1.0
    • Affects Version/s: 2.0.6, 2.1.0
    • Component/s: API (A)

      1. Typo in CDrule::exists()

      if (isset($object['hostids'])) $options['druleids'] = zbx_toArray($object['druleids']);
      must be
      if (isset($object['druleids'])) $options['druleids'] = zbx_toArray($object['druleids']);

      2. In CDRule.get() the limitSelect options must sort dcheck by "dcheckid" and "dhosts" by "dhostid", not by "name".

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

              Created:
              Updated:
              Resolved: