Item-Configuration screen: Invalid hostid in "Add Item"-Form when selecting templates

XMLWordPrintable

    • Type: Incident report
    • Resolution: Duplicate
    • Priority: Major
    • None
    • Affects Version/s: 1.8
    • Component/s: None
    • None

      When you select the items of a template and try to add a new item, no host is selected. I've debugged this and found, that the "Add item"-form has no host id set. Applying this patch helps, but I don't know, if the missing parameter is intended here. Could anyone please check this?

      — class.chost.php.old 2009-12-10 13:56:23.613932688 +0100
      +++ class.chost.php 2009-12-10 13:56:28.999914164 +0100
      @@ -601,7 +601,7 @@
      }

      if(!empty($hostids))

      • $result = self::get(array('hostids' => $hostids, 'extendoutput' => 1));
        + $result = self::get(array('hostids' => $hostids, 'extendoutput' => 1, 'templated_hosts' => 1));

      return $result;
      }

            Assignee:
            Unassigned
            Reporter:
            Dennis Ploeger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: