diff --git a/htdocs/install/mysql/tables/llx_projet_task.sql b/htdocs/install/mysql/tables/llx_projet_task.sql index 3cdf2c6edf7..eb4b87803ca 100644 --- a/htdocs/install/mysql/tables/llx_projet_task.sql +++ b/htdocs/install/mysql/tables/llx_projet_task.sql @@ -38,5 +38,6 @@ create table llx_projet_task fk_user_valid integer, -- user who validated the task fk_statut smallint DEFAULT 0 NOT NULL, note_private text, - note_public text + note_public text, + rang integer DEFAULT 0 )type=innodb; diff --git a/htdocs/install/upgrade2.php b/htdocs/install/upgrade2.php index 43c24fe7c05..eba31a69dd4 100644 --- a/htdocs/install/upgrade2.php +++ b/htdocs/install/upgrade2.php @@ -3079,7 +3079,7 @@ function migrate_element_rang($db,$langs,$conf) //llx_livraisondet $tables[] = array('name'=>'livraisondet','element'=>'delivery','fk_element'=>'fk_livraison'); //llx_projet_task - //$tables[] = array('name'=>'projet_task','element'=>'project','fk_element'=>'fk_projet'); + //$tables[] = array('name'=>'projet_task','element'=>'project_task','fk_element'=>'fk_projet'); foreach($tables as $table) { diff --git a/htdocs/projet/class/task.class.php b/htdocs/projet/class/task.class.php index 9d8178291a0..62142f19740 100644 --- a/htdocs/projet/class/task.class.php +++ b/htdocs/projet/class/task.class.php @@ -333,6 +333,9 @@ class Task extends CommonObject return 0; } } + + // Delete rang of line + //$this->delRangOfLine($this->id, $this->element); $sql = "DELETE FROM ".MAIN_DB_PREFIX."projet_task"; $sql.= " WHERE rowid=".$this->id;