Bug in code api/classes/class.cscript.php and include/maps.inc.php

XMLWordPrintable

    • Type: Incident report
    • Resolution: Fixed
    • Priority: Major
    • None
    • Affects Version/s: 1.8
    • Component/s: Frontend (F)
    • None
    • Environment:
      7.2-RELEASE-p4 FreeBSD, PHP/5.2.10, postgresql 8.4

      diff maps.inc.php maps.inc.php.old
      838c838
      < $selements[$db_element['selementid']] = $db_element;

      > $selements[$db_element['elementid']] = $db_element;
      846c846
      < # $scripts_by_hosts = null;

      > $scripts_by_hosts = null;

      diff class.cscript.php class.cscript.php.old
      139c139
      < $sql_parts['where'][] = '('.DBcondition('hg.hostid', $options['hostids']).' AND ((hg.groupid=s.groupid)'.

      > $sql_parts['where'][] = '(('.DBcondition('hg.hostid', $options['hostids']).' AND hg.groupid=s.groupid)'.
      141c141
      < '(s.groupid=0)))';

      > '(s.groupid=0))';

            Assignee:
            Unassigned
            Reporter:
            Vladimir V Levchenko
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: