From a20f85c2e639c1e8a289c16a194d4b9677b5428e Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 27 May 2006 10:46:20 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20fl=E8ches=20d'ordonnancement=20des=20pr?= =?UTF-8?q?oduits=20sur=20les=20commandes=20et=20les=20propales?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/comm/propal.php | 4 ++-- htdocs/propal.class.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php index 343926f862c..cd2a5fc403c 100644 --- a/htdocs/comm/propal.php +++ b/htdocs/comm/propal.php @@ -489,13 +489,13 @@ if ($_POST["action"] == 'setmode') if ($_GET['action'] == 'up' && $user->rights->propale->creer) { - $propal = new Propal($db); + $propal = new Propal($db, $_GET["propalid"]); $propal->line_up($_GET['rowid']); } if ($_GET['action'] == 'down' && $user->rights->propale->creer) { - $propal = new Propal($db); + $propal = new Propal($db, $_GET["propalid"]); $propal->line_down($_GET['rowid']); } diff --git a/htdocs/propal.class.php b/htdocs/propal.class.php index 71809ac3a71..9329b3b83a5 100644 --- a/htdocs/propal.class.php +++ b/htdocs/propal.class.php @@ -641,7 +641,7 @@ class Propal $rang = $row[0]; } - /* Lecture du rang max de la facture */ + /* Lecture du rang max de la propale */ $sql = 'SELECT max(rang) FROM '.MAIN_DB_PREFIX.'propaldet'; $sql .= ' WHERE fk_propal ='.$this->id; $resql = $this->db->query($sql);