From 7e70aaa2f0aeda63898db40180b5c97858e472e8 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 6 Sep 2010 16:51:05 +0000 Subject: [PATCH] Works on migration management positioning lines rang is not implemented in project task for the moment --- htdocs/install/mysql/tables/llx_projet_task.sql | 3 ++- htdocs/install/upgrade2.php | 2 +- htdocs/projet/class/task.class.php | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) 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;