Details

      Description

      Details were originally posted in ZBX-7409. See:
      https://support.zabbix.com/browse/ZBX-7409?focusedCommentId=116604&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-116604

      DBfetch() appears to return lowercase indexes while camel case are expected.

      The following diff is not meant to be a patch hence not attached.

      --- BEGIN unified diff ---
      
      --- ./api/classes/managers/CHttpTestManager.php.orig    2014-07-17 21:49:52.000000000 +0200
      +++ ./api/classes/managers/CHttpTestManager.php 2014-07-17 21:52:30.000000000 +0200
      @@ -446,8 +446,8 @@
                      );
                      while ($dbItems = DBfetch($dbCursor)) {
                              DB::update('items', array(
      -                               'values' => array('templateid' => $dbItems['parentId']),
      -                               'where' => array('itemid' => $dbItems['childId'])
      +                               'values' => array('templateid' => $dbItems['parentid']),
      +                               'where' => array('itemid' => $dbItems['childid'])
                              ));
                      }
       
      @@ -464,8 +464,8 @@
                      );
                      while ($dbItems = DBfetch($dbCursor)) {
                              DB::update('items', array(
      -                               'values' => array('templateid' => $dbItems['parentId']),
      -                               'where' => array('itemid' => $dbItems['childId'])
      +                               'values' => array('templateid' => $dbItems['parentid']),
      +                               'where' => array('itemid' => $dbItems['childid'])
                              ));
                      }
              }
      
      --- END unified diff ---
      

      I'm pretty sure to have tested it agains plain vanilla.
      Anyway, I'll double-check it again (tomorrow) because it couldn't be reproduced by others.
      Possibly DBfetch behaves differently for databases but haven't checked that yet.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                okkuv9xh Marc
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: