Fix: possibility to defined rang with an external module

This commit is contained in:
Regis Houssin 2010-08-20 17:57:25 +00:00
parent 741a010df0
commit 116243edbb

View File

@ -762,6 +762,19 @@ class CommonObject
$this->updateLineDown($rowid, $rang, $max);
}
/**
* Update position of line (rang)
*/
function updateRangOfLine($rowid,$rang)
{
$sql = 'UPDATE '.MAIN_DB_PREFIX.$this->table_element_line.' SET rang = '.$rang;
$sql.= ' WHERE rowid = '.$rowid;
if (! $this->db->query($sql) )
{
dol_print_error($this->db);
}
}
/**
* Update position of line up (rang)
*/