From 200bdbb25df54a96f2f4ef3a8ab4917f3e33564d Mon Sep 17 00:00:00 2001 From: Juanjo Menent Date: Wed, 6 Jul 2011 09:39:04 +0000 Subject: [PATCH] Fix: No validate unlined interventions --- htdocs/fichinter/fiche.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php index 39c9a121147..cff0a1be34f 100644 --- a/htdocs/fichinter/fiche.php +++ b/htdocs/fichinter/fiche.php @@ -23,7 +23,7 @@ * \file htdocs/fichinter/fiche.php * \brief Fichier fiche intervention * \ingroup ficheinter - * \version $Id: fiche.php,v 1.165 2011/07/02 17:14:58 eldy Exp $ + * \version $Id: fiche.php,v 1.166 2011/07/06 09:39:04 simnandez Exp $ */ require("../main.inc.php"); @@ -1037,7 +1037,7 @@ elseif ($fichinterid) if ($action != 'editdescription') { // Validate - if ($object->statut == 0 && $user->rights->ficheinter->creer) + if ($object->statut == 0 && $user->rights->ficheinter->creer && sizeof($object->lines) > 0) { print ''.$langs->trans("Valid").''; @@ -1178,5 +1178,5 @@ elseif ($fichinterid) $db->close(); -llxFooter('$Date: 2011/07/02 17:14:58 $ - $Revision: 1.165 $'); +llxFooter('$Date: 2011/07/06 09:39:04 $ - $Revision: 1.166 $'); ?>