forked from Wavyzz/dolibarr
Fix: regression
This commit is contained in:
@@ -31,22 +31,6 @@
|
||||
|
||||
class CommonObjectLine
|
||||
{
|
||||
/**
|
||||
* Add position of line (rang)
|
||||
*/
|
||||
function addRangOfLine($parentid,$parenttype,$childid,$childtype,$rang)
|
||||
{
|
||||
$sql = 'INSERT INTO '.MAIN_DB_PREFIX.'element_rang (';
|
||||
$sql.= 'fk_parent, parenttype, fk_child, childtype, rang';
|
||||
$sql.= ') VALUES (';
|
||||
$sql.= $parentid.', "'.$parenttype.'", '.$childid.', "'.$childtype.'", '.$rang;
|
||||
$sql.= ')';
|
||||
|
||||
if (! $this->db->query($sql) )
|
||||
{
|
||||
dol_print_error($this->db);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user