Fix: possibility to defined rang with an external module
This commit is contained in:
parent
741a010df0
commit
116243edbb
@ -762,6 +762,19 @@ class CommonObject
|
|||||||
$this->updateLineDown($rowid, $rang, $max);
|
$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)
|
* Update position of line up (rang)
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user