From 0e2dd913813c1dadb852a38cb980d4d0f7f1f47c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 10 Jul 2005 00:22:17 +0000 Subject: [PATCH] =?UTF-8?q?Meilleure=20ind=E9pendance=20du=20code=20avec?= =?UTF-8?q?=20l'interface=20de=20webcalendar.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/comm/action/fiche.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php index ea5cb57d8b4..51e78621069 100644 --- a/htdocs/comm/action/fiche.php +++ b/htdocs/comm/action/fiche.php @@ -120,17 +120,14 @@ if ($_POST["action"] == 'add_action') } else { - $webcal->heure = $_POST["heurehour"] . $_POST["heuremin"] . '00'; - $webcal->duree = ($_POST["dureehour"] * 60) + $_POST["dureemin"]; - if ($_POST["actionid"] == 5) { $libellecal = $langs->trans("TaskRDVWith",$contact->fullname); - $libellecal .= "\n" . $actioncomm->libelle; + $libellecal .= "\n" . $actioncomm->label; } else { - $libellecal = $actioncomm->libelle; + $libellecal = $actioncomm->label; } $webcal->date=mktime($_POST["heurehour"], @@ -139,6 +136,8 @@ if ($_POST["action"] == 'add_action') $_POST["acmonth"], $_POST["acday"], $_POST["acyear"]); + $webcal->heure = $_POST["heurehour"] . $_POST["heuremin"] . '00'; + $webcal->duree = ($_POST["dureehour"] * 60) + $_POST["dureemin"]; $webcal->texte=$societe->nom; $webcal->desc=$libellecal; }