Skip to content
Snippets Groups Projects
Commit 0e2dd913 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Meilleure indépendance du code avec l'interface de webcalendar.

parent c5036f57
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment