function post_updateItem($history = 1) { global $DB; $this->post_workOnItem(); if (count($this->updates)) { // Update Ticket Tco if (in_array("itemtype", $this->updates) || in_array("items_id", $this->updates)) { $ip = new IPAddress(); // Update IPAddress foreach ($DB->request('glpi_ipaddresses', array('itemtype' => 'NetworkName', 'items_id' => $this->getID())) as $data) { $ip->update(array('id' => $data['id'], 'itemtype' => 'NetworkName', 'items_id' => $this->getID())); } } } parent::post_updateItem($history); }
function post_updateItem($history = 1) { $this->post_workOnItem(); parent::post_updateItem($history); }