Fix: Corrige nombreux problèmes sur enregistrements incomplets des actions.
This commit is contained in:
parent
a169e64e8d
commit
3f8f28852f
@ -116,6 +116,9 @@ if ($_POST["action"] == 'add_action')
|
|||||||
// On definit la ressource webcal si le module webcal est actif
|
// On definit la ressource webcal si le module webcal est actif
|
||||||
$webcal=0;
|
$webcal=0;
|
||||||
if ($conf->webcal->enabled && $_POST["todo_webcal"] == 'on')
|
if ($conf->webcal->enabled && $_POST["todo_webcal"] == 'on')
|
||||||
|
{
|
||||||
|
// Si action complete ou si action de type rendez-vous
|
||||||
|
if ($actioncomm->percent == 100 || $actioncomm->type_code == 'AC_RDV')
|
||||||
{
|
{
|
||||||
// Crée objet webcal et connexion avec params $conf->webcal->db->xxx
|
// Crée objet webcal et connexion avec params $conf->webcal->db->xxx
|
||||||
$webcal = new Webcal();
|
$webcal = new Webcal();
|
||||||
@ -151,6 +154,7 @@ if ($_POST["action"] == 'add_action')
|
|||||||
$webcal->desc=$libellecal;
|
$webcal->desc=$libellecal;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// On crée l'action (avec ajout eventuel dans webcal si défini)
|
// On crée l'action (avec ajout eventuel dans webcal si défini)
|
||||||
$idaction=$actioncomm->add($user, ($webcal->localdb->ok?$webcal:0) );
|
$idaction=$actioncomm->add($user, ($webcal->localdb->ok?$webcal:0) );
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user