From 385c4f8b57bcfa9431c3dc94cbc49bbf3bf46b4f Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 19 Jan 2005 11:14:25 +0000 Subject: [PATCH] =?UTF-8?q?Correction=20du=20probl=E8me=20lors=20du=20clas?= =?UTF-8?q?sement=20de=20la=20propale=20comme=20factur=E9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/propal.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/htdocs/compta/propal.php b/htdocs/compta/propal.php index 6ebe5bbfaac..e7fb02be6d7 100644 --- a/htdocs/compta/propal.php +++ b/htdocs/compta/propal.php @@ -51,19 +51,21 @@ if ($user->societe_id > 0) $socidp = $user->societe_id; } -llxHeader(); - -if ($action == 'setstatut') +if ($_GET["action"] == 'setstatut') { /* * Classée la facture comme facturée */ $propal = new Propal($db); - $propal->id = $propalid; - $propal->cloture($user->id, $statut, $note); + $propal->id = $_GET["propalid"]; + $propal->cloture($user, $_GET["statut"], $note); } +llxHeader(); + + + if ( $action == 'delete' ) { $sql = "DELETE FROM ".MAIN_DB_PREFIX."propal WHERE rowid = $propalid;";