2
0
forked from Wavyzz/dolibarr

Fix: regression

This commit is contained in:
Regis Houssin
2010-09-06 22:31:36 +00:00
parent 8f04e216db
commit f4e656eee1
13 changed files with 74 additions and 373 deletions

View File

@@ -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);
}
}
}