[ZBX-1438] When deleted items from WEB GUI,the trends_uint recode will not be deleted from DB. Created: 2009 Dec 07  Updated: 2017 May 30  Resolved: 2010 May 13

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.6.7
Fix Version/s: 1.8.3

Type: Incident report Priority: Major
Reporter: k-ren Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by ZBX-2491 Delete History_uint? Closed

 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.



 Comments   
Comment by Alexey Fukalov [ 2010 May 10 ]

branches/1.8 11868

Comment by richlv [ 2010 May 12 ]

confirming the fix in trunk rev 11947.

Comment by richlv [ 2010 May 12 ]

hmm. no changelog entry, actually.

Generated at Thu Apr 25 22:55:49 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.