Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-1438

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

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Major Major
    • 1.8.3
    • 1.6.7
    • 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.

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

              Created:
              Updated:
              Resolved: