diff --git a/htdocs/projet/card.php b/htdocs/projet/card.php index dc4b1f69bdb..de45b8a6dab 100644 --- a/htdocs/projet/card.php +++ b/htdocs/projet/card.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2013 Laurent Destailleur + * Copyright (C) 2004-2015 Laurent Destailleur * Copyright (C) 2005-2012 Regis Houssin * * This program is free software; you can redistribute it and/or modify @@ -713,19 +713,6 @@ else if ($action != "edit" ) { - // Validate - if ($object->statut == 0 && $user->rights->projet->creer) - { - if ($userWrite > 0) - { - print ''.$langs->trans("Validate").''; - } - else - { - print ''.$langs->trans('Validate').''; - } - } - // Modify if ($object->statut != 2 && $user->rights->projet->creer) { @@ -739,8 +726,21 @@ else } } + // Validate + if ($object->statut == 0 && $user->rights->projet->creer) + { + if ($userWrite > 0) + { + print ''.$langs->trans("Validate").''; + } + else + { + print ''.$langs->trans('Validate').''; + } + } + // Close - if ($object->statut == 1 && $user->rights->projet->creer) + if (($object->statut == 0 || $object->statut == 1) && $user->rights->projet->creer) { if ($userWrite > 0) {