When deleted items from WEB GUI,the trends_uint recode will not be deleted from DB.

XMLWordPrintable

    • Type: Incident report
    • Resolution: Fixed
    • Priority: Major
    • 1.8.3
    • Affects Version/s: 1.6.7
    • Component/s: Frontend (F)
    • None

      When deleted items from WEB GUI,the trends_uint recode will not be deleted from DB.

      \frontends\php\include\items.inc.php
      function delete_trends_by_itemid($itemids, $use_housekeeper=0){
      zbx_value2array($itemids);

      if($use_housekeeper){
      foreach($itemids as $id => $itemid)

      { $housekeeperid = get_dbid('housekeeper','housekeeperid'); DBexecute('INSERT INTO housekeeper (housekeeperid,tablename,field,value)'. " VALUES ($housekeeperid, 'trends','itemid',$itemid)"); }

      return TRUE;
      }
      return DBexecute('DELETE FROM trends WHERE '.DBcondition('itemid',$itemids));
      }

      As shown as the function,the trends_uint will not be added to housekeeper table.

            Assignee:
            Unassigned
            Reporter:
            k-ren
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: