Can not delete items. Fixed this by changing value to value_id for the updated profiles schema in items.inc.php.
There is also an occurrence in maps.inc.php and screens.inc.php as well.
There is also an occurrence in maps.inc.php and screens.inc.php as well.
Code:
802 $result &= DBexecute('DELETE FROM screens_items WHERE resourceid='.$itemid.' AND resourcetype IN ('.
803 (implode(',',array(
804 SCREEN_RESOURCE_SIMPLE_GRAPH,
805 SCREEN_RESOURCE_PLAIN_TEXT)
806 )
807 ).')');
808
809 $result &= DBexecute('delete from items_applications where itemid='.$itemid);
810 $result &= DBexecute('delete from items where itemid='.$itemid);
811 $result &= DBexecute("DELETE FROM profiles WHERE idx='web.favorite.graphids' AND source='itemid' AND [COLOR="Red"]value_id[/COLOR]='$itemid'");
812
813 if($result){
814 info("Item '".$host["host"].":".$item["key_"]."' deleted");
815 }
816 return $result;

Comment