Skip to content
Snippets Groups Projects
Commit c4af9d4d authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: merge problem

parent ff59631e
Branches
Tags
No related merge requests found
...@@ -1654,30 +1654,6 @@ abstract class CommonObject ...@@ -1654,30 +1654,6 @@ abstract class CommonObject
} }
} }
/**
* Delete all links between an object $this
*
* @return int >0 if OK, <0 if KO
*/
function deleteObjectLinked()
{
$sql = "DELETE FROM ".MAIN_DB_PREFIX."element_element";
$sql.= " WHERE fk_target = ".$this->id;
$sql.= " AND targettype = '".$this->element."'";
dol_syslog(get_class($this)."::deleteObjectLinked sql=".$sql, LOG_DEBUG);
if ($this->db->query($sql))
{
return 1;
}
else
{
$this->error=$this->db->lasterror();
dol_syslog(get_class($this)."::deleteObjectLinked error=".$this->error, LOG_ERR);
return -1;
}
}
/** /**
* Set statut of an object * Set statut of an object
* *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment