From 3c9fef8eea0ec44a60203ffbec53c18f76bb745e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 8 Jun 2013 01:33:16 +0200 Subject: [PATCH] Fix: choice of percentage was lost --- htdocs/comm/action/fiche.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php index 4b438786d56..3fe597d5c66 100644 --- a/htdocs/comm/action/fiche.php +++ b/htdocs/comm/action/fiche.php @@ -494,7 +494,11 @@ if ($action == 'create') print ''.$langs->trans("Status").' / '.$langs->trans("Percentage").''; print ''; $percent=-1; - if (isset($_GET['percentage']) || isset($_POST['percentage'])) + if (isset($_GET['status']) || isset($_POST['status'])) + { + $percent=GETPOST('status'); + } + else if (isset($_GET['percentage']) || isset($_POST['percentage'])) { $percent=GETPOST('percentage'); }