From b7c81d49055f3ed99851d8c0939a19ccca967b0e Mon Sep 17 00:00:00 2001 From: Cerdic <cedric@yterium.com> Date: Fri, 11 Jan 2013 13:40:21 +0000 Subject: [PATCH] Report de r20020 : Bugfix : un statut '0' ne pouvait plus etre modifie par la faute d'un teste errone --- ecrire/action/editer_objet.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecrire/action/editer_objet.php b/ecrire/action/editer_objet.php index 384ad95eaa..309d9bf13e 100644 --- a/ecrire/action/editer_objet.php +++ b/ecrire/action/editer_objet.php @@ -274,7 +274,7 @@ function objet_instituer($objet, $id, $c, $calcul_rub=true) { $champs = array(); $d = ($date AND isset($c[$champ_date]))?$c[$champ_date]:null; - $s = ($statut AND isset($c['statut']))?$c['statut']:$statut; + $s = (isset($c['statut']))?$c['statut']:$statut; // cf autorisations dans inc/instituer_objet if ($s != $statut OR ($d AND $d != $date)) { -- GitLab