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.

    Details

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

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: